??? 06/06/07 19:22 Read: times |
#140343 - scanf() Responding to: ???'s previous message |
scanf() is a very bad choice.
And being big is not the only issue. It is blocking. If you do not get all of the chars, you are hung. One to many, stuck again. (like when plugging in or out the cable or turning on the PC). Wrong type of Data. It will wait for more. gets() or getc() are better choices. In my opinon scanf() is for beginner school projects. It was not even that useful for desktop use back in the DOS days. |