1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-09-19 21:00:35 +00:00
knrc/04-file-copying.c

13 lines
155 B
C
Raw Normal View History

#include <stdio.h>
/* Exercise 1-6 and 1-7 */
int main()
{
int c;
printf("EOF = %d\n", EOF);
while (c = getchar() != EOF)
printf("c = %d\n", c);
}