diff options
Diffstat (limited to 'csv.h')
| -rw-r--r-- | csv.h | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -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 | ||
| 19 | typedef struct { | 19 | typedef 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); | |||
| 53 | int csv_nfields(csv_t *csv); | 53 | int csv_nfields(csv_t *csv); |
| 54 | const char * csv_field(csv_t *csv, int idx); | 54 | const char * csv_field(csv_t *csv, int idx); |
| 55 | int csv_read(csv_t *csv, FILE *in); | 55 | int csv_read(csv_t *csv, FILE *in); |
| 56 | const char * csv_err_str(csv_error_t csv_error); | 56 | const char * csv_err_str(csv_err_t csv_err); |
| 57 | void csv_write(FILE *out, int n, const char *fields[], const csv_options_t * const csv_options); | 57 | void csv_write(FILE *out, int n, const char *fields[], const csv_options_t * const csv_options); |
| 58 | 58 | ||
| 59 | #ifdef __cplusplus | 59 | #ifdef __cplusplus |
