freebsd-ports/textproc/libcsv/files/patch-libcsv.c
Matthew Seaman 00adc5c753 New maintainer: bob@eager.cx
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
2017-01-03 12:27:55 +00:00

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 */