echo_eof.c 180 B

1234567891011
  1. /* echo_eof.c -- repeats input to end of file */
  2. #include <stdio.h>
  3. int main(void)
  4. {
  5. int ch;
  6. while ((ch = getchar()) != EOF)
  7. putchar(ch);
  8. return 0;
  9. }