On Sat, 17 Apr 1999, compiler wrote:
# What's the deal with the itoa function? I can't find a man page for it. Can
somebody tell me where to look or another function I can use instead?
itoa does not exist. Otherwise it would have a manpage. If you want
to convert ints to strings try this:
...
#include <string.h>
...
char str[16]; /* will allow up to 16 digit numbers */
sprintf (str, "%d", int_i_want_converting);
/*********************/
so say you had :
int foo = 32768;
you'd do
sprintf (str, "%d", foo);
....
THE C book (2nd ed.) has an itoa function, but that up there is smaller and
easier.
--
+++ The program isn't debugged until the last user is dead. +++
[EMAIL PROTECTED] http://www.penguinpowered.com/~a_out