csv.h File Reference


Detailed Description

Routines to parse data in CSV format.

#include <stdio.h>

Go to the source code of this file.

Functions

int dba_csv_read_next (FILE *in, char **cols, int col_max)
 Parse a CSV line.


Function Documentation

int dba_csv_read_next ( FILE *  in,
char **  cols,
int  col_max 
)

Parse a CSV line.

Parameters:
in The file where to read from
cols The array of char* that will hold the parsed columns. If the line has more than `cols' columns, the exceeding ones will be ignored. Please note that you have to deallocate all the lines returned in cols.
col_max The size of cols
Returns:
The number of columns found, or 0 if we hit the end of the file


Generated on Fri Aug 1 15:20:53 2008 for libdballe by  doxygen 1.5.6