How to simulate an EOF? How to simulate an EOF? c c

How to simulate an EOF?


To enter an EOF, use:

  1. ^Z (CtrlZ) in Windows
  2. ^D on Unix-like systems