[prev] [index] [next]

CSV Library Interface (cont)

char *csvgetline(FILE *f)
  • reads one line of CSV data from input file f
  • line terminated by one of   \n \r \r\n EOF
  • returns full text of line, with terminator removed
  • returns NULL if EOF encountered
  • line may be arbitrary length; return NULL if too long
  • line must be treated as read-only storage (not enforceable)