shithub: riscv

ref: e269212796f765b89065cf7c5d0d431d6b4546ba
dir: /sys/src/libstdio/ferror.c/

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