From ce3ddfefd39e556f2dc81806fe8560455cf948b4 Mon Sep 17 00:00:00 2001 From: Jacques Comeaux Date: Sat, 20 Jul 2024 01:08:03 -0500 Subject: Add string functions for stage 3 editor --- better_assembler/slowcat.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 better_assembler/slowcat.c (limited to 'better_assembler/slowcat.c') diff --git a/better_assembler/slowcat.c b/better_assembler/slowcat.c new file mode 100644 index 0000000..67725d4 --- /dev/null +++ b/better_assembler/slowcat.c @@ -0,0 +1,11 @@ +#include +#include + +int main() { + uint8_t byte; + while (read(STDIN_FILENO, &byte, 1)) { + write(STDOUT_FILENO, &byte, 1); + usleep(10000); + } + return 0; +} -- cgit v1.2.3