Parse CSV file in C

Is there a library that 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. I don't want to feel the pain of debugging and testing if someone has already done this.

+7
source share
3 answers

Check out libcsv , which is a CSV library written in ANSI C89.

+8
source

There is a simple library of CSV parsers described in the excellent book "Programming Practices" by Kernighan and Pike , and the source is available from the site linked to.

+2
source

CSV parsing is not too complicated, depending on the structure of the CSV, look at the strtok function .

0
source

All Articles