1#include <stdio.h>2#include <string.h>3#include <wchar.h>45#undef clearerr67void8clearerr(FILE *fp)9{10 fp->flags &= ~(_IOERR | _IOEOF);11 memset(&fp->mbs, 0, sizeof(mbstate_t));12}
A fork of https://git.simple-cc.org/scc/ for Qute
git clone https://git.8pit.net/scc.git
1#include <stdio.h>2#include <string.h>3#include <wchar.h>45#undef clearerr67void8clearerr(FILE *fp)9{10 fp->flags &= ~(_IOERR | _IOEOF);11 memset(&fp->mbs, 0, sizeof(mbstate_t));12}