gigatron/rom/Archive/lcc/Libs/stdio/fflush.c
2025-01-28 19:17:01 +03:00

14 lines
212 B
C

#include <errno.h>
#include <stdio.h>
int fflush(FILE *stream)
{
if (stream->_flags & _iowrite) {
stream->_n--;
return stream->_flush(EOF, stream);
} else {
errno = -EBADF;
return EOF;
}
}