diff options
| author | J08nY | 2017-02-14 22:57:49 +0100 |
|---|---|---|
| committer | J08nY | 2017-02-14 22:57:49 +0100 |
| commit | 2cf95775a1d1a41d49f86cbd2d66290653201367 (patch) | |
| tree | dcaacac863a68ff69639a73c363dd498808e93e2 /src/io/output.c | |
| parent | 39c6155e0193ff69dcdf765e936487bfcf4f1b17 (diff) | |
| download | ecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.tar.gz ecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.tar.zst ecgen-2cf95775a1d1a41d49f86cbd2d66290653201367.zip | |
Diffstat (limited to 'src/io/output.c')
| -rw-r--r-- | src/io/output.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/io/output.c b/src/io/output.c index 27cdcf4..2e4d82d 100644 --- a/src/io/output.c +++ b/src/io/output.c @@ -20,7 +20,7 @@ char *output_scsv(const char *format, char delim, GEN vector) { total += lengths[i]; } - char *result = (char *)malloc(total + len); + char *result = (char *) malloc(total + len); if (!result) { perror("Couldn't malloc."); exit(1); @@ -48,7 +48,12 @@ void output_csv(FILE *out, const char *format, char delim, GEN vector) { free(string); } -char *output_sjson(GEN vector) {} + +char *output_sjson(curve_t *curve) { + JSON_Value *root_value = json_value_init_object(); + JSON_Object *root_object = json_value_get_object(root_value); + char *result = NULL; +} void output_json(FILE *out, GEN vector) {} |
