3.8.11 cat0.c

We use cookies. Read the Privacy and Cookie Policy

3.8.11 cat0.c

/* cat: minimal version */

#define SIZE 512 /* arbitrary */

main() {

 char buf[SIZE];

 int n;

 while ((n = read(0, buf, sizeof buf)) > 0)

  write(1, buf, n);

 exit(0);

}

Данный текст является ознакомительным фрагментом.