The mktemp() function replaces the contents of the string pointed to by template with a unique file name, and returns template. The
string in template should look like a file name with six trailing 'X's; mktemp() will replace the 'X's with a character string that can be used to create a unique
file name. Only 26 unique file names per thread can be created for each unique template.