[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: int to string?



See atoi()

or

int mypid;
char mypidstr[6];
mypid = getpid();
sprintf(mypidstr, "%d", mypid); /* Output go to string */
puts(mypidstr);


-T. Muthu Mohan.
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com