I am trying to create a temporary directory to perform some operations in it and then delete the whole thing at the end. I use C language in a UNIX system, so I would like to have some compliance with this environment.
What is the best way to program this ?
EDIT
I really need a directory, not only a file. The small program is intended to try out if I can perform an svn checkout
of a project. So, it should be able to create a full hierarchy of files and directories.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…