summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tolsac.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/tolsac.c b/src/tolsac.c
index 7707a01..7cb8a41 100644
--- a/src/tolsac.c
+++ b/src/tolsac.c
@@ -379,9 +379,19 @@ i32 main(i32 argc, char *argv[]) {
fclose(readfile);
return 1;
}
+
+ // Read the header line
+ // char *header_line = NULL;
+ // size_t len = 0;
+ // ssize_t read = getline(&header_line, &len, readfile);
+ // if (read == -1) {
+ // printf("Error reading CSV header\n");
+ // fclose(readfile);
+ // return 1;
+ // }
// Read the header line
- char header_line[1024] = {0};
+ char header_line[1048576] = {0};
if (!fgets(header_line, sizeof(header_line), readfile)) {
printf("Error reading header line!\n");
fclose(readfile);
Back to https://optics-design.com