Given something like:
#include <stdio.h>
int main(void) {
int c;
while( (c=getchar()) != EOF )
putchar(c);
return 0;
}
When I run and twice hit ctrl-d (indicating EOF on my system), I get
the following
cdalten@linux:~./ef
la la cdalten@linux:~>
Why does 'la ' get echoed back after the first EOF?
Chad