MKTEMP(3,L) AIX Technical Reference MKTEMP(3,L) ------------------------------------------------------------------------------- mktemp PURPOSE Constructs a unique file name. LIBRARY Standard C Library (libc.a) SYNTAX char *mktemp (template) char *template; DESCRIPTION The mktemp subroutine replaces the contents of the string pointed to by the template parameter with a unique file name. The string in the template parameter must be a file name with six trailing "X"s. The mktemp subroutine replaces the "X"s with a character sequence such that the string pointed to by template is a filename which does not name an existing file. Upon successful completion, the mktemp subroutine returns the address of the string pointed to by the template parameter. If mktemp is unable to construct a unique file name from the template, then the first character of the template string is replaced with a null character, and a NULL pointer is returned. RELATED INFORMATION In this book: "getpid, getpgrp, getppid," "tmpfile," and "tmpnam, tempnam." Processed November 7, 1990 MKTEMP(3,L) 1