Thread: Non-blocking fgets

  1. #1
    J-Dogg
    Guest

    Non-blocking fgets

    Hi. Does anyone know if I can set fgets() so that it doesn't block until a line is entered, but instead times out after a certain length of time if there's been no input?

    Thanks in advance.

  2. #2
    jppoiri2
    Guest
    Thanks. I'm running Linux, so that was exactly what I needed.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fgets not working after fgetc
    By 1978Corvette in forum C Programming
    Replies: 3
    Last Post: 01-22-2006, 06:33 PM
  2. problem with fgets
    By learninC in forum C Programming
    Replies: 3
    Last Post: 05-19-2005, 08:10 AM
  3. problem with fgets
    By Smoot in forum C Programming
    Replies: 4
    Last Post: 12-07-2003, 03:35 AM
  4. fgets crashing my program
    By EvBladeRunnervE in forum C++ Programming
    Replies: 7
    Last Post: 08-11-2003, 12:08 PM
  5. help with fgets
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-17-2001, 08:18 PM