Skip to content

Felipeasg/csv_parser-1

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv_parser

csv_parser is a simple C library for parsing CSV.

The parse_cvs function takes a single row from a CSV file (as a string), and outputs an array of strings corresponding to the values in the columns in that row.

License: MIT

Documentation

char **parse_csv( const char *line );

Returns a NULL-terminated array of strings encoded in the indicated line of CSV.

Returns NULL if there was insufficient RAM or if the line is not property encoded CSV.

The return value of parse_csv is malloc'd, and each string in the array is also malloc'd.

void free_csv_line( char **parsed );

Convenience function to free the output of the parse_csv command. All this function does is free each string in the array and then free the array.

About

Simple CSV parser written in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.6%
  • Makefile 1.4%