I am reading from stdin and when I get prompt I don't know how to get out of it. The while loop goes until end-of-file. So, question is what do I type on the keyboard to say: "I am done". I have tried <enter> and all other kind of keyboard combinations and nothing works.
Thanks.
Code:
...
while ((k = fread(mybuf, sizeof(char), bsize, input)) > 0) {
fwrite (mybuf, sizeof(char), k, output);
}
...
Thanks.