summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2024-11-19 22:05:58 +0100
committeryuzu-eva <stevenhu@web.de>2024-11-19 22:05:58 +0100
commit34f8779858beea561fb2f2f63476164665ace59f (patch)
tree38e28772072df90abea285f66ab0227f9752c63a
parentbde6708e7ecda55697fbb1afc79868a1d821a4a3 (diff)
increased size of episode buffer
-rw-r--r--README.md5
-rw-r--r--main.c2
2 files changed, 5 insertions, 2 deletions
diff --git a/README.md b/README.md
index 4f19893..9ec3359 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,10 @@ Samurai Champloo,14
Bakemonogatari,done
Steins; Gate,1
-and so on.
+and so on. The episode is actually stored as a string, so you can put "done" or
+"abandoned" or anything else you want in there. Allows for a maximum length of
+11.
+
You need to set your filepath in the main.c, but everything else should work
out of the box.
The Makefile uses clang, but you can change it to gcc in the second line. Or
diff --git a/main.c b/main.c
index 0ea1b99..f20d26f 100644
--- a/main.c
+++ b/main.c
@@ -7,7 +7,7 @@ const char *filename = "./anime.csv";
typedef struct {
char name[80];
- char episode[5];
+ char episode[12];
} entry_t;
typedef enum {