[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
int to string?
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()?
"If there were any justice, my face would be on a bunch of crappy
merchandise" -- Homer J. Simpson