fgets-timeout Wrapper with timeout for fgets How to use $ cd src $ sh build.sh # 3 executables are generated $ ./proc hello # input hello # output $ ./proc timeout!!