csv

csv reading library
git clone git://bvnf.space/csv.git
Log | Files | Refs

commit 9a4e63e526e0f6078fc85768b788547997f34097
parent 72a537dfc9aa27e78dbede42ff397208d09ac233
Author: aabacchus <ben@bvnf.space>
Date:   Sat,  2 Oct 2021 23:54:28 +0100

remove printing

Diffstat:
Mlibcsv.c | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)

diff --git a/libcsv.c b/libcsv.c @@ -155,10 +155,6 @@ csv_read_file(FILE *f, struct csv *c, char hdr) { if (hdr) { /* read header */ ncols = read_header(f, c->headers); - for (int i = 0; i < ncols; i++) { - printf("%s\t", c->headers[i]); - } - printf("\n"); } else { /* scan the first line to get the value of ncols */ while ((ch = fgetc(f)) != EOF) { @@ -180,11 +176,6 @@ csv_read_file(FILE *f, struct csv *c, char hdr) { csv_destroy(c); return 1; } - for (int i = 0; i < nrows; i++) { - for (int j = 0; j < ncols; j++) - printf("%g\t", c->data[i][j]); - printf("\n"); - } c->rows = nrows; return 0; }