Skip to main content

ecs_parse_token

Function ecs_parse_token 

Source
pub unsafe extern "C" fn ecs_parse_token(
    name: *const i8,
    expr: *const i8,
    ptr: *const i8,
    token_out: *mut i8,
    delim: i8,
) -> *const i8
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.