'int ()' differs in levels of indirection from 'char *(char *)'

来源:百度知道 编辑:UC知道 时间:2024/06/06 01:40:06
hi all, I know this must be a simple problem, but as I'm kind of a new to vc++, I'm having a problem with my codes. My OS is windows XP 2002,and the codes are as follows:

strupr(string)
char *string;
{
while ( *string != '\0' )
{
if (islower(*string)) *string = toupper(*string);
string++;
}
}

I get a error like this:
F:\seed\rdseed.li\4.7\12.23\rdseed\Main\rdseed.c(2868) : error C2040: 'strupr' : 'int ()' differs in levels of indirection from 'char *(char *)'
Any advice would be much appreciated.