diff options
| author | chenzizhan <[email protected]> | 2023-08-29 15:14:28 +0800 |
|---|---|---|
| committer | chenzizhan <[email protected]> | 2023-08-29 15:14:28 +0800 |
| commit | a8df66a5c4446d31dbde3e228f79456d78301d3e (patch) | |
| tree | 731997544c2ca0de7ad75e0a7b60e730ae61f483 /include | |
| parent | a1a3eb6c43cca9eb8d3ce83b9dd10c5e4b6100bc (diff) | |
feat: fieldstat_json_exporter_export_arrayv4.1.3
Diffstat (limited to 'include')
| -rw-r--r-- | include/fieldstat/fieldstat_exporter.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/fieldstat/fieldstat_exporter.h b/include/fieldstat/fieldstat_exporter.h index d18d9b0..c1aa994 100644 --- a/include/fieldstat/fieldstat_exporter.h +++ b/include/fieldstat/fieldstat_exporter.h @@ -78,13 +78,10 @@ void fieldstat_json_exporter_free(struct fieldstat_json_exporter *exporter); Output the fieldstat instance to json string array. User must free the output string. */ char *fieldstat_json_exporter_export(const struct fieldstat_json_exporter *exporter); -void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, char **output, size_t *output_size); -// for (size_t i = 0; i < output_size; i++) -// { -// free(output[i]); -// } -// free(output); -// strlen(output[i]); +/* + after call fieldstat_json_exporter_export_array, user must free the output array and each string. +*/ +void fieldstat_json_exporter_export_array(const struct fieldstat_json_exporter *exporter, char ***output, size_t *output_size); #ifdef __cplusplus } |
