aboutsummaryrefslogtreecommitdiff
path: root/csv.h
diff options
context:
space:
mode:
Diffstat (limited to 'csv.h')
-rw-r--r--csv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/csv.h b/csv.h
index a8be413..9fcfa55 100644
--- a/csv.h
+++ b/csv.h
@@ -14,13 +14,13 @@ typedef enum {
14 CSV_ERR_OUT_OF_RANGE = -2, 14 CSV_ERR_OUT_OF_RANGE = -2,
15 CSV_ERR_IO_READ = -3, 15 CSV_ERR_IO_READ = -3,
16 CSV_ERR_IO_WRITE = -4 16 CSV_ERR_IO_WRITE = -4
17} csv_error_t; 17} csv_err_t;
18 18
19typedef struct { 19typedef struct {
20 char quote_symbol; 20 char quote_symbol;
21 char sep_symbol; 21 char sep_symbol;
22 22
23 void (*cb_error)(csv_error_t, void *); 23 void (*cb_error)(csv_err_t, void *);
24 void *cb_error_arg; 24 void *cb_error_arg;
25 25
26 void *(*cb_allocate)(size_t, size_t, void *); 26 void *(*cb_allocate)(size_t, size_t, void *);
@@ -53,7 +53,7 @@ void csv_cleanup(csv_t *csv);
53int csv_nfields(csv_t *csv); 53int csv_nfields(csv_t *csv);
54const char * csv_field(csv_t *csv, int idx); 54const char * csv_field(csv_t *csv, int idx);
55int csv_read(csv_t *csv, FILE *in); 55int csv_read(csv_t *csv, FILE *in);
56const char * csv_err_str(csv_error_t csv_error); 56const char * csv_err_str(csv_err_t csv_err);
57void csv_write(FILE *out, int n, const char *fields[], const csv_options_t * const csv_options); 57void csv_write(FILE *out, int n, const char *fields[], const csv_options_t * const csv_options);
58 58
59#ifdef __cplusplus 59#ifdef __cplusplus