shithub: riscv

ref: 84e019aba3dd233d817272cc62ca2a95a5263de7
dir: /sys/src/libstdio/ferror.c/

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