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.