Original Post
I'm teaching a few people at work to program in C which, much like this forum, is doing nothing but showing me how little I know (Ignorance may not be bliss but it's much better for your ego). Anway, I was trying to explain how scanf (yes I know the function is insecure) worked, and wasn't positive so I figured I'd ask and see if I needed to correct myself. I "think" (from my memory and admittedly sparse research) what's happening is that is that user-requested input is consumed until the request is filled or stdin's buffer is empty at which point a call to scanf will buffer input until is pressed (or, more generally until 'end-of-line' is reached?). Can someone confirm or clarify?