Dlaczego ta funkcja nie zamienia mi nazwiska na wielką literę?
void toUpper(char *tekst)
{
int i = 0;
tekst[0] = (toupper(tekst[0]));
for(i=1; i<MAX_TEXT-1; i++)
{
if(isspace(tekst[i]))
{
char c = tekst[i+1];
tekst[i+1] = toupper(c);
}
}
}