diff options
Diffstat (limited to 'assembler/slowcat.c')
-rw-r--r-- | assembler/slowcat.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/assembler/slowcat.c b/assembler/slowcat.c new file mode 100644 index 0000000..99493ae --- /dev/null +++ b/assembler/slowcat.c @@ -0,0 +1,11 @@ +#include <unistd.h> +#include <stdint.h> + +int main() { + uint8_t byte; + while (read(STDIN_FILENO, &byte, 1)) { + write(STDOUT_FILENO, &byte, 1); + usleep(1000); + } + return 0; +} |