C
CBFalconer
svata said:Richard Heathfield wrote:
.... snip ...
Can you explain me why should I refrain from using scanf()? Is that
function cursed or what? I see real difference in using gets() of
fgets(). But Borland C compiler gives no warning about using gets...
In reverse order, no warning is required for gets avoidance, just
common sense, because it cannot be used safely. You can use my
ggets instead (see url below).
Yes, scanf is cursed, especially for interactive use. The only
sane way to use it is for one item at a time, carefully checking
its return value. Unless your name is Dan Pop.