loop #2
@ -40,7 +40,7 @@ void loop() {
|
|||||||
if (feof(stdin)) {
|
if (feof(stdin)) {
|
||||||
// the stdin was closed, this usually happens for CTRL-D
|
// the stdin was closed, this usually happens for CTRL-D
|
||||||
printf("\n");
|
printf("\n");
|
||||||
exit(EXIT_SUCCESS);
|
break;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
perror("Error: ");
|
perror("Error: ");
|
||||||
|
Loading…
Reference in New Issue
Block a user