Files
RedBear-OS/tests/stdio/ungetc_multiple.c
Red Bear OS 1b3e94a20d Red Bear OS relibc baseline
From release 0.1.0 pre-patched archive.
This includes all Red Bear modifications previously maintained
as patches in local/patches/relibc/.
2026-06-27 09:19:26 +03:00

28 lines
563 B
C

#include <stdio.h>
int main() {
ungetc('\n', stdin);
ungetc('d', stdin);
ungetc('l', stdin);
ungetc('r', stdin);
ungetc('o', stdin);
ungetc('w', stdin);
ungetc(' ', stdin);
ungetc('o', stdin);
ungetc('l', stdin);
ungetc('l', stdin);
ungetc('e', stdin);
ungetc('h', stdin);
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
putchar(getchar());
}