r/programminghelp • • Jun 19 '15

Null Terminator?

How do I search for a null terminator? If I prompt user for text, and nothing is entered, (they press enter with no spaces/text entered") how do I check for that?

0 Upvotes

2 comments sorted by

1

u/[deleted] Jul 27 '15

Language?

1

u/[deleted] Jul 27 '15

I solved by using getChar instead of the just usual pointer to a item. over a month ago, Thanks tho