Mail Archives: djgpp/1998/02/08/18:01:30
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.
assuming str points to valid storage,
sprinf(str, "%d", mypid);
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -