- 博客(1)
- 收藏
- 关注
原创 fgets函数循环调用导致段错误
龙芯LS2K1000环境下 循环调用fgets导致段错误: do_page_fault(): sending SIGSEGV to APP.exe for invalid write access to 0000000000000000 通常情况下,单次使用fgets函数,只能获取文件的一行信息,代码为: char str[100]; FILE *fd=fopen("appconfig.txt","r"); if(fd==NULL) { printf( "appconfig.txt is not a f
2021-12-08 16:31:02 1987 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人