Lines Matching refs:str
5 int verify_string( char **str )
7 if( (*str)[0] != '"' ||
8 (*str)[strlen( *str ) - 1] != '"' )
11 "Expected string (with \"\") for parameter and got: %s\n", *str );
15 (*str)++;
16 (*str)[strlen( *str ) - 1] = '\0';
21 int verify_int( char *str, int *value )
28 for( i = 0; i < strlen( str ); i++ )
30 if( i == 0 && str[i] == '-' )
37 str[i - 1] == '0' && str[i] == 'x' )
43 if( ! ( ( str[i] >= '0' && str[i] <= '9' ) ||
44 ( hex && ( ( str[i] >= 'a' && str[i] <= 'f' ) ||
45 ( str[i] >= 'A' && str[i] <= 'F' ) ) ) ) )
55 *value = strtol( str, NULL, 16 );
57 *value = strtol( str, NULL, 10 );
65 "Expected integer for parameter and got: %s\n", str );
82 int dep_check( char *str )
84 if( str == NULL )