ecs_parse_token

Function ecs_parse_token 

Source
pub unsafe extern "C" fn ecs_parse_token(
    name: *const c_char,
    expr: *const c_char,
    ptr: *const c_char,
    token_out: *mut c_char,
    delim: c_char,
) -> *const c_char
Expand description

Parse a single token. This function can be used as simple tokenizer by other parsers.

@param name of program (used for logging). @param expr pointer to token to parse. @param ptr pointer to first character to parse. @param token_out Parsed token (buffer should be ECS_MAX_TOKEN_SIZE large) @return Pointer to the next token, or NULL if error occurred.