Hello All,
I'm experiencing some odd runtime behavior when using the fgets() function as an alternative to scanf(). I'm simply trying to read in some user input such as a string of text. I notice that if I use the fgets() call inside the main() routine, I get a user prompt. But if I call fgets() from a subroutine function, the program doesn't prompt for any user input. Does anyone know what the issue is?
David
I'm experiencing some odd runtime behavior when using the fgets() function as an alternative to scanf(). I'm simply trying to read in some user input such as a string of text. I notice that if I use the fgets() call inside the main() routine, I get a user prompt. But if I call fgets() from a subroutine function, the program doesn't prompt for any user input. Does anyone know what the issue is?
David