Date: Mon, 9 Feb 1998 11:05:21 -0600 (CST) From: Andrew Deren To: Lester Davis cc: djgpp AT delorie DOT com Subject: Re: integer to string In-Reply-To: <34DE1449.185C@bellsouth.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 >