wok view memtest/stuff/reverse.c @ rev 25865

libsdl*: update urls
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Sep 01 12:45:35 2025 +0000 (10 days 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 }