when would this ever return NULL?Code:while fgets(buf,sizeof(buf),stdin) != NULL
Because it seems that just hitting enter it doesn't, and that's what I figured would make it return NULL. Same issue with Scanf, I can get my program to do what I want, but I'm wondering if someone can provide an example where this would ever return null.... thanks



LinkBack URL
About LinkBacks


