I am trying to make a program that asks a user for input. I already know how to terminate the program after getting EOF.
if(feof(stdin)) exit(1);
Or,
while(!feof(stdin)) { ... }
By ignoring I mean that the program does nothing after catching EOF. Like signal handling:
signal(SIGTERM, no_op_function);