ref: ac8c056bcad38af1a18ab22d2c8a30dcbd2410f9
dir: /rate.c/
#include <u.h> #include <libc.h> void main(int argc, char **argv) { int rate = atoi(argv[1]); char *buf = malloc(rate); for(;;){ if((readn(0, buf, rate)) < rate) break; write(1, buf, rate); sleep(250); } }