sfparse_parser_list

Synopsis

#include <sfparse.h>

int sfparse_parser_list(sfparse_parser *sfp, sfparse_value *dest)

sfparse_parser_list() reads the next list item. If this function returns 0, it stores the item in dest if it is not NULL.

Caller can optionally read parameters attached to the item by calling sfparse_parser_param().

Caller should keep calling this function until it returns negative error code. If it returns SFPARSE_ERR_EOF, all values in the list have been read, and there is nothing left to read.

This function returns 0 if it succeeds, or one of the following negative error codes:

SFPARSE_ERR_EOF

All values in the list have read.

SFPARSE_ERR_PARSE

It encountered fatal error while parsing field value.