diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2024-09-12 14:39:18 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2024-09-12 14:39:18 +0000 |
commit | 1f5da5a858d1dfe1052b9f0ba8daef827b3e0c9e (patch) | |
tree | cb6d54c046f2b0881e46a472e4e3b2b96653b21e /comp/lucas-standen-NEA/code2/parser.c | |
parent | 56c455e14522a6534ef8dcb0cf5dcfc7fc4bd0fc (diff) |
IT WORKS: first full build
Diffstat (limited to 'comp/lucas-standen-NEA/code2/parser.c')
-rw-r--r-- | comp/lucas-standen-NEA/code2/parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/comp/lucas-standen-NEA/code2/parser.c b/comp/lucas-standen-NEA/code2/parser.c index e15e545..7d177ca 100644 --- a/comp/lucas-standen-NEA/code2/parser.c +++ b/comp/lucas-standen-NEA/code2/parser.c @@ -26,7 +26,7 @@ strings *parse(FILE *f){ int count = 0; while (fgets(line, 256, f) != NULL){ if (line[0] != '\n'){ - if (line[0] == '\t') line++; + while (line[0] == '\t') line++; line[strlen(line)-1] = '\0'; strs->strs[count] = malloc(256); memcpy(strs->strs[count], line, 256); |