void Fun1(char *str, const char *path)
{
FILE *fw = fopen(path, "w");
assert(fw != NULL);
int i;
for (i=0; str[i]!='!'; i++)
{
if (str[i]>='a' && str[i]<='z')
{
str[i] -= 'a' - 'A';
}
}
str[i] = '\0';
fwrite(str, sizeof(char), strlen(str)-1, fw);
fclose(fw);
}
请各位高人指教一下,我不知道我的这个程序哪里有问题?