summaryrefslogtreecommitdiff
path: root/csv-test.c
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-06-22 17:20:00 +0200
committerThomas Schmucker <ts@its1.de>2020-06-22 17:20:00 +0200
commit4bf39b20162e7d12a53a1de607a6f83b159928f5 (patch)
tree161740563c56beef1047fc9649b8bfb071b92df0 /csv-test.c
parent5720780289ecd40816adbc0299fe80f0b5d7d37d (diff)
downloadlibcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.tar.gz
libcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.tar.bz2
libcsv-4bf39b20162e7d12a53a1de607a6f83b159928f5.zip
fix: csv_write
Diffstat (limited to 'csv-test.c')
-rw-r--r--csv-test.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/csv-test.c b/csv-test.c
index e2fd308..bbc7212 100644
--- a/csv-test.c
+++ b/csv-test.c
@@ -103,6 +103,17 @@ test_exception_longjmp(FILE *f)
103int 103int
104main(void) 104main(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");