wok view memtest/stuff/reverse.c @ rev 25749
fixed recipe for dconf
author | Hans-G?nter Theisgen |
---|---|
date | Sat Aug 31 14:17:36 2024 +0100 (10 months ago) |
parents | |
children |
line source
1 #include <unistd.h>
3 #define BUFSZ 4096
4 static char output[BUFSZ];
6 void main(void)
7 {
8 char input[BUFSZ];
9 int i, j, count;
11 count = read(0, input, BUFSZ);
12 if (count > 0) {
13 main();
14 for (i = 0, j = count; j != 0; output[--j] = input[i++]);
15 write(1, output, count);
16 }
17 }