int getname(char* flagstr) {
char buf[1024];
FILE* pDictfp = NULL;
int getlen = 0;
unsigned long pDictBufLen = 0;
pDictfp = fopen(pDicPath, "r");
if (pDictfp) {
while (!feof(pDictfp))
{
fscanf(pDictfp,"%[^n]%*cn", buf);
if (memcmp(buf, flagstr, 15) == 0) {
fscanf(pDictfp, "%[^n]%*cn", buf);
strcpy(flagstr, buf);
getlen = strlen(buf);
return getlen;
}
}
fclose(pDictfp);
}
return 0;
}
最后
以上就是炙热手链最近收集整理的关于基于C/C++跳过空格,读取行数据的全部内容,更多相关基于C/C++跳过空格内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复