I am having a problem with targeting the first character after any space(" ") in a string. I want to target the character so that I may capitalize it with toupper. Is there a way I can do this? If so, what is it? I have inserted an attempt below.
int main(void){
printf("Please enter your name! \n");
string s = GetString();
for (int i=0;i <1; i++)
{
printf("%c", toupper(s[0]));
printf("%c", toupper(char *strstr(const char *s, const char (" ")+1));
}
printf("\n");
}