libcsv is a small, simple and fast CSV library written in pure ANSI C89 that can read and write CSV data. It provides a straight-forward interface using callback functions to handle parsed fields and rows and can parse improperly formatted CSV files.
Be the first to post a text review of libcsv. Rate and review a project by clicking thumbs up or thumbs down in the right column.
libcsv 3.0.0 has been released. This version improves the interface, adds new options and features, and makes it easier to call functions from C++. See Changelog for details.
libcsv version 3.0.0 * This release contains interface changes that are not compatible with previous versions. Callback functions now use void * parameters instead of char *, this eliminates the need to cast data read into a buffer of unsigned char which is the proper way to read binary data data is also treated as an array of unsigned char internally. The cb2 callback function now uses int instead of char, char has changed to unsigned char in several places, csv_opts has been replaced with csv_get_opts and csv_set_opts, and csv_fini returns -1 instead of 0 when no newline if present at the end of the last record. New features also make this version binary-incompatible with previous versions. * Added CSV_APPEND_NULL option which will null-terminate all collected fields making it easier to treat data as C strings when desired. * Added C++ wrapper in csv.h to make it easier to call functions from C++. * Added functions to change the memory allocation functions used, get the size of the internal buffer, and get and set the size of the amount of memory requested when the internal buffer gets too large.
libcsv 2.0.1 has been released. This release fixes a bug in one of the example programs and the Makefile. See Changelog for details.
* Fixed bug in Makefile causing library to be installed as libcsv.so.0 instead of libcsv.so.2 * Fixed bug in csvvalid example program where location of malformed bytes past byte 1023 were misreported
libcsv 2.0.0 has been released. The new version adds support for defining alternative quote and delimiter characters, as well as what is considered a space or line terminator. New versions of csv_write and csv_fwrite allow a quote character to be specified. An FAQ is also provided. Also, check out the new csvutils project (http://sourceforge.net/projects/csvutils) which uses the new version of libcsv to provide a set of CSV utlities for managing CSV files.
Be the first person to add a text review.
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use
Thanks for your rating!
Would you also like to write a review?