Skip to content

Commit a029b0c

Browse files
committed
Fix typos in man page, update pdf documentation.
Correct typos in the csv.3 man page. Update the csv.pdf documentation which did not include several previous changes made to csv.3. Fixes #20 and #22.
1 parent da0cb79 commit a029b0c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

csv.3

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH CSV 3 "9 January 2013"
1+
.TH CSV 3 "20 August 2021"
22
.SH NAME
33
csv \- CSV parser and writer library
44
.SH SYNOPSIS
@@ -139,7 +139,7 @@ Multiple options can be specified by OR-ing them together.
139139
.TP
140140
\fIcb1\fP is a pointer to the callback function that will be called from \fBcsv_parse()\fP after an entire field has been read. \fIcb1\fP will be called with a pointer to the parsed data (which is NOT nul-terminated unless the CSV_APPEND_NULL option is set), the number of bytes in the data, and the pointer that was passed to \fBcsv_parse()\fP.
141141
.TP
142-
\fIcb2\fP is a pointer to the callback function that will be called when the end of a record is encountered, it will be called with the character that caused the record to end, cast to an unsigned char, or -1 if called from csv_fini, and the pointer that was passed to \fBcsv_init()\fP.
142+
\fIcb2\fP is a pointer to the callback function that will be called when the end of a record is encountered, it will be called with the character that caused the record to end, cast to an unsigned char, or -1 if called from csv_fini, and the pointer that was passed to \fBcsv_parse()\fP.
143143
.TP
144144
\fIdata\fP is a pointer to user-defined data that will be passed to the callback functions when invoked.
145145
.TP
@@ -293,7 +293,7 @@ CUSTOMIZING THE PARSER
293293
.br
294294
The \fBcsv_set_delim()\fP and \fBcsv_set_quote()\fP functions provide a
295295
means to change the characters that the parser will consider the delimiter
296-
and quote characters respetively, cast to unsigned char. \fBcsv_get_delim()\fP and \fBcsv_get_delim()\fP
296+
and quote characters respetively, cast to unsigned char. \fBcsv_get_delim()\fP and \fBcsv_get_quote()\fP
297297
return the current delimiter and quote characters respectively. When
298298
\fBcsv_init()\fP is called the delimiter is set to \fBCSV_COMMA\fP and the quote
299299
to \fBCSV_QUOTE\fP. Note that the rest of the CSV conventions still apply

csv.pdf

19.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)