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

Function checkStr

External/tiny-json/tiny-json.c:191–196  ·  view source on GitHub ↗

Compare two strings until get the null character in the second one. * @param ptr sub string * @param str main string * @retval Pointer to next character. * @retval Null pointer if any error occur. */

Source from the content-addressed store, hash-verified

189 * @retval Pointer to next character.
190 * @retval Null pointer if any error occur. */
191static char* checkStr( char* ptr, char const* str ) {
192 while( *str )
193 if ( *ptr++ != *str++ )
194 return 0;
195 return ptr;
196}
197
198/** Parser a string to get a primitive value.
199 * If the first character after the value is different of '}' or ']' is set to '\0'.

Callers 1

primitiveValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected