MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / fraqValue

Function fraqValue

External/tiny-json/tiny-json.c:259–264  ·  view source on GitHub ↗

Analyze the decimal part of a real number. * @param str Pointer to first character. * @retval Pointer to first non numerical after the string. If success. * @retval Null pointer if any error occur. */

Source from the content-addressed store, hash-verified

257 * @retval Pointer to first non numerical after the string. If success.
258 * @retval Null pointer if any error occur. */
259static char* fraqValue( char* ptr ) {
260 if ( !isdigit( *ptr ) ) return 0;
261 ptr = goNum( ++ptr );
262 if ( !ptr ) return 0;
263 return ptr;
264}
265
266/** Parser a string to get a numerical value.
267 * If the first character after the value is different of '}' or ']' is set to '\0'.

Callers 1

numValueFunction · 0.85

Calls 1

goNumFunction · 0.85

Tested by

no test coverage detected