aboutsummaryrefslogtreecommitdiff
path: root/assembler/slowcat.c
blob: 99493aef6a0b1c69d5b5e1d64cec60cef4b6078a (plain)
1
2
3
4
5
6
7
8
9
10
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;
}