关于strlwr函数
# include <stdio.h># include <string.h>
int main()
{
printf("%s\n", strlwr("CHINA"));
return 0;
}
结果是“0x0040d761”指令引用的"0x00422020"内存。该内存不能为"written"。
但是我用下面的就可以
# include <stdio.h>
# include <string.h>
int main()
{
char a[]="CHINA";
printf("%s\n", strlwr(a));
return 0;
}
难道说strlwr不能写成strlwr("xxx")的形式?