aboutsummaryrefslogtreecommitdiff
path: root/src/parse.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-07-23 08:36:27 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-07-23 08:36:27 -0500
commit33284cc023c67d37adb84c3b76af7829e8748f24 (patch)
tree8c8e583f46ddf9814b20fe10475d8f852de1bdce /src/parse.h
parent13d2f9ee07a632ab09ed4eacabc57ce406a2dff0 (diff)
add: read_csv function added
There is still much to do
Diffstat (limited to 'src/parse.h')
-rw-r--r--src/parse.h28
1 files changed, 28 insertions, 0 deletions
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 <stdio.h>
+#include <stdbool.h>
+
+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
Feel free to download, copy and edit any repo