mktemp - make a unique temporary filename
#include <stdlib.h> char *mktemp(char *template); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): mktemp(): _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE >= 500.
EINVAL The last six characters of template were not XXXXXX.
4.3BSD, POSIX.1-2001. POSIX.1-2008 removes the specification of mktemp().
The prototype is in <unistd.h> for libc4, libc5, glibc1; glibc2 follows the Single Unix Specification and has the prototype in <stdlib.h>.).
mkstemp(3), tempnam(3), tmpfile(3), tmpnam(3)
This page is part of release 3.24 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at.