Quote:
Originally posted by KnifeMissle
It's generally advised to use gets() to get the input string and then parse it yourself, with a combination of conversion functions, like atoi() and atof()...
|
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.