Is there a library I can use to parse CSV files in C. I am on a Linux system. I know about this but it is in C++ and I need something in C. Don't want to go through the pain of debugging and testing if someone has already done it.
相关问题
- Multiple sockets for clients to connect to
- Correctly parse PDF paragraphs with Python
- What is the best way to do a search in a large fil
- sqlyog export query result as csv
- glDrawElements only draws half a quad
Parsing a CSV is no too much complicated, depend of the CSV structure, take a look at the strtok function.
Take a look at libcsv, which is a CSV library written in ANSI C89.
There's a simple CSV parser library that's described in the excellent book The Practice of Programming by Kernighan and Pike, and the source is available from the site linked to.