i just want to find out '?','/','\', ect, from a char array, can anyone help me to find out what's wrong with the code below?
thanks
the reture value is not always what i want?
static int is_valid_function_name(char *function_name_string)
{
for( ; *function_name_string !=' \0 ' ; function_name_string++ )
{
if ( *(function_name_string) ==' ? ' )
/* (*(function_name_string) ==' / ')||
(*(function_name_string ==' \\ ' )||
(*(function_name_string) ==' : ' )||
(*(function_name_string) ==' * ' )||
(*(function_name_string) ==' < ' )||
(*(function_name_string) ==' > ')||
(*(function_name_string) ==' | ')||
(*(function_name_string) ==' " ') */
{
return 0;
break ;
}
}
return 1;
}