C   37

readwrite

Guest on 14th July 2022 02:07:06 AM

  1. #include <unistd.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void){
  5.   char c;
  6.   while (read(0,&c,1) != 0)
  7.     write(1, &c, 1);
  8.   exit(0);
  9. }

Raw Paste


Login or Register to edit or fork this paste. It's free.