blob: ae03e938168a0a87af65bad728a79d0ced8d6d29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#include "dietstdio.h"
#ifdef WANT_UNGETC
int ungetc(int c, FILE *stream) {
if (stream->ungotten)
return EOF;
stream->ungotten=1;
stream->ungetbuf=(char)(unsigned char)c;
return c;
}
#endif
|