sfparse_parser_param¶
Synopsis¶
#include <sfparse.h>
-
int sfparse_parser_param(sfparse_parser *sfp, sfparse_vec *dest_key, sfparse_value *dest_value)¶
sfparse_parser_param()
reads a parameter. If this function returns 0, it stores parameter key and value in dest_key and dest_value respectively, if they are not NULL.This function does no effort to find duplicated keys. Same key may be reported more than once.
Caller should keep calling this function until it returns negative error code. If it returns
SFPARSE_ERR_EOF
, all parameters have read, and caller can continue to read rest of the values. If it returnsSFPARSE_ERR_PARSE
, it encountered fatal error while parsing field value.