diff options
| author | Mistivia <i@mistivia.com> | 2025-12-20 03:53:05 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-12-20 03:53:05 +0800 |
| commit | 8f13f23b1cd9da6140ea391744416e9b3569c88b (patch) | |
| tree | daf8c7a391803c59c0cc6a4b07ea44c3b62e4027 /03/part1.c | |
| parent | 8f749b3839933c4b70494682a9710e05184465cf (diff) | |
day 3 part 2
Diffstat (limited to '03/part1.c')
| -rw-r--r-- | 03/part1.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -11,7 +11,9 @@ void getlines(StringVector *lines) { if (line == NULL) { break; } - StringVector_push_back(lines, line); + char *nline = str_strip(line); + free(line); + StringVector_push_back(lines, nline); } } |
