我是靠谱客的博主 炙热手链,这篇文章主要介绍基于C/C++跳过空格,读取行数据,现在分享给大家,希望可以做个参考。

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++跳过空格内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(137)

评论列表共有 0 条评论

立即
投稿
返回
顶部