From 33284cc023c67d37adb84c3b76af7829e8748f24 Mon Sep 17 00:00:00 2001 From: jvech Date: Tue, 23 Jul 2024 08:36:27 -0500 Subject: add: read_csv function added There is still much to do --- src/parse.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/parse.h (limited to 'src/parse.h') diff --git a/src/parse.h b/src/parse.h new file mode 100644 index 0000000..e50f6bd --- /dev/null +++ b/src/parse.h @@ -0,0 +1,28 @@ +#ifndef PARSE_H +#define PARSE_H + +#include +#include + +typedef struct Array { + double *data; + size_t shape[2]; +} Array; + +void json_read( + FILE *fp, + Array *input, Array *out, + char *out_keys[], size_t out_keys_size, + char *in_keys[], size_t in_keys_size, + bool read_output + ); + +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, + bool read_output, + char separator + ); +#endif -- cgit v1.2.3-70-g09d2