shithub: riscv

ref: 4821c261c4cea895ddcbd7c70bc71103c9a2763b
dir: /sys/src/libstdio/ferror.c/

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