rayw said:
Me again - what happened to getch etc ... I feel like everything I once knew
has gone!
Please don't top post even when replying to yourself. Replies belong
*under* the portions of text you are replying to, not above them.
A: Because it means everything is backwards
Q: Why is top posting a right pain in the rear end?
itoa was never in the standard. It might have been in whatever
implementation you used, but that does not make it standard.
atoi and friends are bad because:
1) The behaviour is undefined if the result does not fit in the target
type
2) They don't allow for detecting failure (did the user enter 0 or an
invalid string?)
> Me again - what happened to getch etc ...
getch was never in the standard, although it might have been in the
implementation you used.
> I feel like everything I once knew
> has gone!
The problem is that you learnt a load of vendor specific extensions
without learning that they are *not* part of the C language. Had you
learnt standard C you would not have this problem. So I suggest you
learn standard C now.
Extensions are not intrinsically bad (you can't write a GUI application
without them) but you should only use them knowingly and preferably in
isolated modules within your application.