aboutsummaryrefslogtreecommitdiff
path: root/hexedit/slowcat.c
blob: 67725d4fe0dbc331102c8ecb245763b2cff7836e (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(10000);
  }
  return 0;
}