#include <stdio.h>
#include <ctype.h>
char* strcaps(char* s)
{
while (*s != '\0')
{
toupper(*s);
s++;
}
return s;
}
.
int main()
{
char makeCap[100];
printf("Type what you want to capitalize: ");
fgets(makeCap, 100, stdin);
strcaps(makeCap);
return 0;
}
このプログラムは問題なくコンパイルされますが、実行すると何も出力されません。ここで何が欠けていますか?