Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The C Paradox

Name: Anonymous 2011-08-06 14:30

If gets() is so dangerous and should never be used,

Why was it created in first place and kept in the C standard until now?

Name: Anonymous 2011-08-07 4:00

gets() is fine for development, just not suitable for production code. In fact, none of the generic input functions are. If you want bug-proof code it's best to roll your own getchar() loop and parser. The generic functions are just for quick hacks.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List