[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: int to string?
On Tue, Jul 04, 2000 at 02:08:36PM -0700, Sudhakar Chandrasekharan wrote:
> I am in the process of writing a program that will store some data
> in a temporary file. I want the temp file to be /tmp/prog_name.pid
> I get the process id from getpid(). The pid is an int. How do I convert
> this int into a string (char *), so that I can cat all of it together to
> come up with the path that I can pass to fopen()?