I have been reading much about exploits involving temporary files. I am
working on a C program where I need to make a temporary directory,
populate it with files, call a sub program (not sub routine) and have it
to its thing, on return I will erase those files.
Are there any functions (C libraries) I should/should not be using and
any specific precautions I should take?
I do want this to be portable as possible, that is the only caveat.