shithub: riscv

ref: 1b02c81c18eb4be6d9372c8d668ad2314bae7872
dir: /sys/src/libstdio/ferror.c/

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