第1个回答 2016-01-07
int cds(const char *p)
{
char path[PATH_SIZE];
char *start;
char *end;
int res;
int n= 0;
memset(path,'\0',PATH_SIZE); // must init ,ohtrway there is a wrong result with @
start = strchr(p,' ');
end = strchr(p,'\n');
if(!start || !end)
{
printf("can't support this format \n");
return 1;
}本回答被网友采纳