Quote:
Originally posted by n0nsensical
gets is no good either, unless you like buffer overflows. =P getline is the one to use if you must use C arrays for strings.
|
D'oh, you're right! You do risk buffer overflows with gets() but, unless you're talking about a different getline() function that I'm not currently aware of, gets() is still his best bet. Unless the April 2001 MSDN is lying to me, getline() is not available to poor C coders, being a C++ streaming function and all...