mkstemp64

Name

mkstemp64 -- Create a unique temporary file (Large File Support)

Synopsis

#include <stdio.h>
#include <stdlib.h>

int mkstemp64(char *template);

Description

The mkstemp64() function generates a unique temporary file name from template. The last six characters of template must be XXXXXX and these are replaced with a string that makes the filename unique.

The mkstemp64() function is a 64-bit version of mkstemp.

RETURN VALUE

The mkstemp64() function returns the file descriptor fd of the temporary file or -1 on error.