diff options
| author | 2026-10-12 08:46:23 +0330 | |
|---|---|---|
| committer | 2026-10-12 08:46:23 +0330 | |
| commit | ecc350ca5c2eb50be8309c5f14f8bf0d87db9a02 (patch) | |
| tree | 70e0af76a1b13affff7c6cc8aac7b3e6ef960478 /docs/history/15-o3/code/io_linux.c | |
a
Diffstat (limited to 'docs/history/15-o3/code/io_linux.c')
| -rw-r--r-- | docs/history/15-o3/code/io_linux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/history/15-o3/code/io_linux.c b/docs/history/15-o3/code/io_linux.c new file mode 100644 index 0000000..7ea34e0 --- /dev/null +++ b/docs/history/15-o3/code/io_linux.c @@ -0,0 +1,6 @@ +#include <stdio.h> +int J; +static int pk(void){int c=getchar();ungetc(c,stdin);return c==EOF;} +char Q(void){int c=getchar();J=pk();return c;} +void G(char c){putchar(c);} +__attribute__((constructor)) static void init(void){J=pk();} |
