shithub: riscv

ref: 8a1c1c951066705b98b417f26eebcb293e3b549d
dir: /sys/src/libstdio/ferror.c/

View raw version
/*
 * pANS stdio -- ferror
 */
#include "iolib.h"
int ferror(FILE *f){
	return f->state==ERR;
}