概述
在列表字符串中查找特定的字符串,报错了?
#include
#define TRUE 1
#define FALSE 0
void main()
{
int find_char(char **strings,int value);
char strings[3][1000]={{"fdshkfbvf"},{"fsahfklank"},{"ashklakl"}};
char *p;
p=strings[0];
int ch='j';
if( find_char( &p,ch ) )
printf( "Find it.n" );
else
printf( "Don't find it.n" );
}
//在列表字符串中查找特定的字符串
int
find_char( char **strings,int value )
{
char *string;
while( ( string = *strings++) != NULL)
{
while( *string != '