This library is free for any kind of use, including commercial use. It is licensed under the MIT license.
The parser is compatible with Excel and with OpenOffice/LibreOffice Calc, and can parse hard cases of CSV files
Check the Wiki page for usage examples and API
Features
- A full C API for parsing CSV files
- Enables reading the file row by row
- Enables to define which char is the delimiter
- Enables to decide whether to consider the first row as a header
- Can parse "hard" cases, such as multiline fields, fields with delimiters and quotes within, and more
- Enables also parsing from a CSV syntaxed string
Categories
Data FormatsFollow C/C++ CSV Parser
Other Useful Business Software
MongoDB Atlas runs apps anywhere
MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Rate This Project
Login To Rate This Project
User Reviews
-
Nice job! Do not forget to check if row exists before delete it in CsvParser_destroy_row(). Otherwise I've got SEGFAULT with your example.
-
For user `cppfed` : Problem fixed by changing "getHeader()" to return const pointer - only CsvParser destructor has the right to free the header. For user `qghi` : The memory leak issue was fixed in the one of the former releases
-
Memory leak in void CsvParser_destroy_row(CsvRow *csvRow) Must be void CsvParser_destroy_row(CsvRow *csvRow) { ... free(csvRow->fields_); free(csvRow); }
-
nice work! 5 stars for you!