Non-blocking fgets

This is a discussion on Non-blocking fgets within the C Programming forums, part of the General Programming Boards category; Hi. Does anyone know if I can set fgets() so that it doesn't block until a line is entered, but ...

  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, 09: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, 01:08 PM
  5. help with fgets
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 10-17-2001, 09:18 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21