The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 ViewsWhat does:
scanf("%*[^\n]") stand for...
some kind of flushing?
or... does it kick everything out of the imput buffer except for the newline?
hmm...
not quite sure
I'm not great at C code so I can't really comment on what it does. Just flop it into your code though and see what it does.
At 11/5/04 02:43 PM, FireHound wrote: What does:
scanf("%*[^\n]") stand for...
Basically, it just skips all characters until the newline.