Mail Archives: djgpp/1998/02/09/12:12:45
You can use sprintf function.
sprintf(str, "%d", Mypid);
but you have to allocate memory first for str either dynamically or
statically.
On Sun, 8 Feb 1998, Lester Davis wrote:
> Im tring to insert the num rturned by getpid(unix sytem call) into a
> string. cna someone tell me how to do this if the
> int is Mypid and the ptr to the string is *str.
>
> thanks
>
> --
> (.~.)
> =========================--oOO--(_)--OOo--=========================
>
> Lester (Ringo) Davis
>
- Raw text -