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.
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.