Marc Feeley wrote:
Interesting. But why would you do it in C (in 600 lines of code) when you can do it in 20 lines of Scheme?
Ignorance maybe! There's a little more to csv parsing than just splitting on ",", but having said that your code runs a lot quicker than I was expecting.
I had tried http://www.neilvandyke.org/csv-scm/ but this was really slow so turned my sights to wrapping a c library.
Thanks!
Phil