Skip to main content
gamedev.net
🔒 Locked

scanf

Started by hungryhippo5000 Mar 21, 2005 at 11:33 PM 0 replies 650+ views
Original Post
hungryhippo5000
hungryhippo5000
Can someone please tell me how I can accept an empty string with scanf or any possible c input commands? I just want my program to accept the user input even if the user does not enter any value for the string.
Brocketino
Brocketino
Why not check for null before calling scanf?

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.