From c3bfddceeebc80b76324a9a204df12451b025822 Mon Sep 17 00:00:00 2001 From: jdequidt Date: Thu, 15 Mar 2018 10:32:06 +0100 Subject: [PATCH] 🛠 fix du fichier exemple pour qu'il soit plus compréhensible --- src/csv_reader.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/csv_reader.c b/src/csv_reader.c index 49bb508..f65f86a 100644 --- a/src/csv_reader.c +++ b/src/csv_reader.c @@ -85,7 +85,12 @@ void read_csv_file(const char * filename) while (NULL != token) { - if (IS_DEBUG) printf("Field %d is %s\n", i++, token); // you can strcpy the `token` string in your data structures + if (IS_DEBUG) printf("Field %d is %s\n", i++, token); + + // ... + // you can strcpy the `token` string in your data structures + // ... + token = strtok(NULL, CSV_DELIMITERS); } } @@ -114,4 +119,4 @@ int main(int argc, char * argv[]) free(CSV_HEADER_FIELDS); return 0; -} \ No newline at end of file +} -- libgit2 0.21.2