#include <msvcrt/io.h>
+/*
+ * @implemented
+ */
int fflush(FILE *f)
{
char *base;
if (f == NULL)
{
- int e = errno;
+ int e = *_errno();
__set_errno(0);
_fwalk((void (*)(FILE *))fflush);
- if (errno)
+ if (*_errno())
return EOF;
__set_errno(e);
return 0;
return 0;
}
+/*
+ * @implemented
+ */
int _flushall( void )
{
return fflush(NULL);