lew (11/16/82)
A pet peeve of mine is that atoi() - "ascii to integer", should really be dtoi() - "decimal to integer", and there should be an otoi() - "octal to integer", and an xtoi() - "hex to integer". I often miss otoi(). It seems to me that its absence is due to the premeptive nomenclature of the "decimal to integer" function. The name would be justified if it used the C convention of a leading "0" or "0x" for octal and hex, but it doesn't. Lew Mammel, Jr. ihuxr!lew
davy (11/22/82)
#R:ihuxr:-20700:pur-ee:15500004:000:514 pur-ee!davy Nov 17 18:01:00 1982 I agree otoi() would be extremely handy sometimes......of course these things are trivial to write, but who wants the hassle? Speaking of this sort of thing, I have a "itoa()" program which takes an integer and converts it to an ASCII string representing that number. It will give you the number in any base, 2-36. I've used it numerous times, particularly when I'm trying to avoid stdio for some reason. If there's enough interest, I'll be glad to post it to the net.... --Dave Curry pur-ee!davy