Some code I'm reading contains this function:
...and I was just wondering why the need for 's' at all, when you could just perform the same operation on 'str'?Code:char* strupr(char* str) { char *s = str; while (*s) { *s = toupper(*s); s += 1; } return (str); }