summaryrefslogtreecommitdiff
path: root/comp/lucas-standen-NEA/code2/parser.c
diff options
context:
space:
mode:
authorThing1 <thing1@seacrossedlovers.xyz>2024-09-10 16:36:22 +0100
committerThing1 <thing1@seacrossedlovers.xyz>2024-09-10 16:36:22 +0100
commitfe89cc56e2aa7fa119e2251d104acde37d632cd9 (patch)
treebc3f21ac2e998b292dd836c745c308dbe63e1221 /comp/lucas-standen-NEA/code2/parser.c
parent9b83439d9d0204a5092772ae46ef43cea42dbc7c (diff)
started to fix the issue of not outputing to a var
Diffstat (limited to 'comp/lucas-standen-NEA/code2/parser.c')
-rw-r--r--comp/lucas-standen-NEA/code2/parser.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/comp/lucas-standen-NEA/code2/parser.c b/comp/lucas-standen-NEA/code2/parser.c
index 7650c4f..e15e545 100644
--- a/comp/lucas-standen-NEA/code2/parser.c
+++ b/comp/lucas-standen-NEA/code2/parser.c
@@ -25,7 +25,8 @@ strings *parse(FILE *f){
char *line = alloca(256);
int count = 0;
while (fgets(line, 256, f) != NULL){
- if (line[0] != '\n'){
+ if (line[0] != '\n'){
+ if (line[0] == '\t') line++;
line[strlen(line)-1] = '\0';
strs->strs[count] = malloc(256);
memcpy(strs->strs[count], line, 256);