a C++ equivilant to mkdir /tmp/directory.$(date +%Y%m%d).$$"
Using "C" - i have a program in which i am trying to create a new output folder to dump the output (a bunch of files) to. I want the new output directory to have a datestamp appended it along with a random identifier.
In bash, I can do this....
mkdir /tmp/directory.$(date +%Y%m%d).$$"
Is there a way to do this within a C program?
***************************
HERE ARE THE VARIABLE DEFINITIONS I AM CURRENTLY USING
const char OUTPUTDIR[]="/tmp/kajun_output/";
char OUTPATH[STRINGLEN];
***********************************
AND HERE IS HOW I AM CURRENTLY MAKING THE DIRECTORY
mkdir(OUTPUTDIR,0777);
|