aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-07-23 22:47:14 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-07-23 22:47:14 -0500
commite83529ae7533c15c2a604fe6075a34d124d4316e (patch)
treefe58aad20449b3c34a9527d12ac6216a91f21ea5 /src/parse.h
parent33284cc023c67d37adb84c3b76af7829e8748f24 (diff)
add: csv_read() improved
Error messages are more specific and now columns are read as arrays of strings.
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/parse.h b/src/parse.h
index e50f6bd..05cafa2 100644
--- a/src/parse.h
+++ b/src/parse.h
@@ -20,9 +20,10 @@ void json_read(
void csv_read(
FILE *fp,
Array *input, Array *out,
- size_t in_cols[], size_t in_cols_size,
- size_t out_cols[], size_t out_cols_size,
+ char *in_cols[], size_t in_cols_size,
+ char *out_cols[], size_t out_cols_size,
bool read_output,
+ bool has_header,
char separator
);
#endif
Feel free to download, copy and edit any repo