1
0
mirror of https://github.com/krislamo/knrc.git synced 2024-11-10 00:30: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);
}