shithub: riscv

ref: 99cc56f2e986f7337142d382d699ef09c337074a
dir: /sys/src/libstdio/ferror.c/

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