src/engine.c
/*!
 * Parses the first size_teger from a string, and increments it.
 * @param input the string to parse and increment.
 * @param length the length of the string. Will be decremented.
 * @return the parsed size_teger.
 */
Parses the first size_teger from a string, and increments it.
@param input the string to parse and increment.
@param length the length of the string. Will be decremented.
@return the parsed size_teger.
Parses the first size_teger from a string and increments it . @param input the string to parse and increment . @param length the length of the string . Will be decremented . @return the parsed size_teger .
static size_t engine_parse_index(char **input, size_t *length)
{
	size_t i = 0;
	while (i < *length && isdigit((*input)[i]))
		i += 1;
	(*input)[i] = '\0';
	size_t index = atoi(*input);
	*length -= i + 1;
	*input += i + 1;
	return index;
}
static size_t engine_parse_index ( char * * input , size_t * length ) { size_t i = 0 ; while ( i < * length && isdigit ( ( * input ) [ i ] ) ) i += 1 ; ( * input ) [ i ] = ' \0 ' ; size_t index = atoi ( * input ) ; * length -= i + 1 ; * input += i + 1 ; return index ; }
Parses the first size_teger from a string, and increments it.
Parses the first size_teger from a string and increments it .