ferror.c

来自「su 的源代码库」· C语言 代码 · 共 32 行

C
32
字号
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved.                       */#include	"sfstdio.h"/*	Return the error condition if any.**	Written by Kiem-Phong Vo*/#if __STD_Cint ferror(FILE* f)#elseint ferror(f)FILE*	f;#endif{	reg Sfio_t*	sf;		if(!(sf = _sfstream(f)))		return -1;	_stdseterr(f,sf);	return sferror(sf);}#if _lib_ferror_unlocked && _done_ferror_unlocked && !defined(ferror)#define _done_ferror_unlocked	1#define ferror	ferror_unlocked#include	"ferror.c"#undef ferror#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?