summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2021-07-31 10:20:39 +0200
committerThomas Schmucker <ts@its1.de>2021-07-31 10:20:39 +0200
commit7a5b29742887d2cdb0c78040119425c2ab0e493f (patch)
treedd534701ec76ae44ebfe2b829366a62308c7b94c
parente83a67ae9e0a050c42d2db1109dba6ebfcb943c6 (diff)
downloadlibcsv-7a5b29742887d2cdb0c78040119425c2ab0e493f.tar.gz
libcsv-7a5b29742887d2cdb0c78040119425c2ab0e493f.tar.bz2
libcsv-7a5b29742887d2cdb0c78040119425c2ab0e493f.zip
fix: typo in comment and function name
-rw-r--r--csv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/csv.c b/csv.c
index 739035c..50e490e 100644
--- a/csv.c
+++ b/csv.c
@@ -121,7 +121,7 @@ csv_string_reset(csv_string_t *csv_string)
121} 121}
122 122
123static inline int 123static inline int
124csv_string_empty(csv_string_t *csv_string) 124csv_string_isempty(csv_string_t *csv_string)
125{ 125{
126 assert(csv_string != NULL); 126 assert(csv_string != NULL);
127 127
@@ -444,7 +444,7 @@ csv_read(csv_t *csv, FILE *in)
444 return 0; 444 return 0;
445 } 445 }
446 446
447 if ( csv_string_empty(&csv->csv_string) ) { 447 if ( csv_string_isempty(&csv->csv_string) ) {
448 csv_cleanup(csv); 448 csv_cleanup(csv);
449 return 0; // EOF reached 449 return 0; // EOF reached
450 } 450 }
@@ -452,7 +452,7 @@ csv_read(csv_t *csv, FILE *in)
452 /* 452 /*
453 * The last data record was not terminated with a NEWLINE-Symbol. 453 * The last data record was not terminated with a NEWLINE-Symbol.
454 * So we can't signal End-Of-File for now. Terminate the current 454 * So we can't signal End-Of-File for now. Terminate the current
455 * field and return the numbor of fields processed so far. 455 * field and return the number of fields processed so far.
456 */ 456 */
457 csv_string_append(&csv->csv_string, '\0', csv->csv_options); 457 csv_string_append(&csv->csv_string, '\0', csv->csv_options);
458 458