within C if I use the scanf() function, how do I allow the user to enter a null value? So far if I use scanf to input, and just press return, it continually requests input until it is non null
Any suggestions?
Dave.
Printable View
within C if I use the scanf() function, how do I allow the user to enter a null value? So far if I use scanf to input, and just press return, it continually requests input until it is non null
Any suggestions?
Dave.
Use gets (or better fgets) and parse the string with sscanf.