Add new 'EXAMPLES' option Use OPTIONS helpers Spelling fixes for man pages Add a csv_get_blk_size() function PR: 215720 Submitted by: bob@eager.cx
18 lines
380 B
C
18 lines
380 B
C
--- libcsv.c.orig 2012-12-28 22:50:44 UTC
|
|
+++ libcsv.c
|
|
@@ -259,6 +259,15 @@ csv_set_blk_size(struct csv_parser *p, s
|
|
}
|
|
|
|
size_t
|
|
+csv_get_blk_size(struct csv_parser *p)
|
|
+{
|
|
+ /* Get the block size used to increment buffer size */
|
|
+ if (p)
|
|
+ return p->blk_size;
|
|
+ return 0;
|
|
+}
|
|
+
|
|
+size_t
|
|
csv_get_buffer_size(struct csv_parser *p)
|
|
{
|
|
/* Get the size of the entry buffer */
|