1 #include <stdio_impl.h>
6 if (f->wpos > f->buf) f->write(f, 0, 0);
7 f->wpos = f->wbase = f->wend = 0;
8 if (f->flags & (F_EOF|F_NORD)) {
9 if (f->flags & F_NORD) f->flags |= F_ERR;
12 f->rpos = f->rend = f->buf;
16 static const int dummy = 0;
17 weak_alias(dummy, __towrite_used);
19 void __stdio_exit(void);
23 if (!__towrite_used) __stdio_exit();