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. */
| 189 | * @retval Pointer to next character. |
| 190 | * @retval Null pointer if any error occur. */ |
| 191 | static 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'. |