sfparse_parser_inner_list

Synopsis

#include <sfparse.h>

int sfparse_parser_inner_list(sfparse_parser *sfp, sfparse_value *dest)

sfparse_parser_inner_list() reads the next inner 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 this inner list have been read, and caller can optionally read parameters attached to this inner list by calling sfparse_parser_param(). Then caller can continue to read rest of the values.

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

SFPARSE_ERR_EOF

All values in the inner list have read.

SFPARSE_ERR_PARSE

It encountered fatal error while parsing field value.