diff options
| author | Thomas Schmucker <ts@its1.de> | 2020-06-22 17:20:00 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2020-06-22 17:20:00 +0200 |
| commit | 4bf39b20162e7d12a53a1de607a6f83b159928f5 (patch) | |
| tree | 161740563c56beef1047fc9649b8bfb071b92df0 /csv-test.c | |
| parent | 5720780289ecd40816adbc0299fe80f0b5d7d37d (diff) | |
| download | libcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.tar.gz libcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.tar.bz2 libcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.zip | |
fix: csv_write
Diffstat (limited to 'csv-test.c')
| -rw-r--r-- | csv-test.c | 11 |
1 files changed, 11 insertions, 0 deletions
| @@ -103,6 +103,17 @@ test_exception_longjmp(FILE *f) | |||
| 103 | int | 103 | int |
| 104 | main(void) | 104 | main(void) |
| 105 | { | 105 | { |
| 106 | const char *names[] = { "Thomas \"DG\" Schmucker", "Andrea", "Markus", "Marion", NULL }; | ||
| 107 | |||
| 108 | csv_write(stdout, -1, names, NULL); | ||
| 109 | csv_write(stdout, 0, names, NULL); | ||
| 110 | csv_write(stdout, 1, names, NULL); | ||
| 111 | csv_write(stdout, 2, names, NULL); | ||
| 112 | csv_write(stdout, 3, names, NULL); | ||
| 113 | csv_write(stdout, 4, names, NULL); | ||
| 114 | csv_write(stdout, 5, names, NULL); | ||
| 115 | return 0; | ||
| 116 | |||
| 106 | FILE *in = fopen("500000 Records.csv", "r"); | 117 | FILE *in = fopen("500000 Records.csv", "r"); |
| 107 | if ( in == NULL ) { | 118 | if ( in == NULL ) { |
| 108 | fprintf(stderr, "failed to open testfile...\n"); | 119 | fprintf(stderr, "failed to open testfile...\n"); |
