From: Thomas Demmer Newsgroups: comp.os.msdos.djgpp Subject: Re: integer to string Date: Sun, 08 Feb 1998 22:51:56 +0100 Organization: Lehrstuhl fuer Stroemungsmechanik Lines: 22 Message-ID: <34DE28FC.80E00687@LSTM.Ruhr-UNI-Bochum.De> References: <34DE1449 DOT 185C AT bellsouth DOT net> NNTP-Posting-Host: bvb.lstm.ruhr-uni-bochum.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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. > sprintf(str,"%d",Mypid); -- Ciao Tom ************************************************************* * Thomas Demmer * * Lehrstuhl fuer Stroemungsmechanik * * Ruhr-Uni-Bochum * * Universitaetsstr. 150 * * D-44780 Bochum * * Tel: +49 234 700 6434 * * Fax: +49 234 709 4162 * * http://www.lstm.ruhr-uni-bochum.de/~demmer * *************************************************************