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.
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 ...
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.
Thanks. I'm running Linux, so that was exactly what I needed.