Some code I'm reading contains this function:

Code:
char* strupr(char* str)
{
    char *s = str;

    while (*s)
    {
        *s = toupper(*s);
        s += 1;
    }
    return (str);
}
...and I was just wondering why the need for 's' at all, when you could just perform the same operation on 'str'?