MCPcopy Create free account
hub / github.com/danihek/hellwal / hell_parser_status_t hell_parser_next

Function hell_parser_status_t hell_parser_next

hell_parser.h:154–162  ·  view source on GitHub ↗

Go next by one character, and pass it to *out, * if it's out of bounds return error */

Source from the content-addressed store, hash-verified

152 * if it's out of bounds return error
153 */
154HELL_DEF hell_parser_status_t hell_parser_next(hell_parser_t *parser, char *out)
155{
156 if (!parser || !out || parser->pos >= parser->length)
157 {
158 return HELL_PARSER_ERROR;
159 }
160 *out = parser->input[parser->pos++];
161 return HELL_PARSER_OK;
162}
163
164HELL_DEF hell_parser_status_t hell_parser_delim(hell_parser_t *parser, char delim, unsigned count)
165{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected