Question about Null vs zero

Posted by Mike on Stack Overflow See other posts from Stack Overflow or by Mike
Published on 2010-03-27T17:19:03Z Indexed on 2010/03/27 17:23 UTC
Read the original article Hit count: 119

Filed under:
|
|

I have this function:

void ToUpper(char * S)
{
while (*S!=0)
{
*S=(*S >= 'a' && *S <= 'z')?(*S-'a'+'A'):*S;
S++;
}
} 

What does it mean for *S != 0, should it be null instead?

© Stack Overflow or respective owner

Related posts about c++

Related posts about string