01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

MKTEMP ( 3C ) MKTEMP ( 3C )<br />

NAME<br />

mktemp - make a unique file name<br />

SYNOPSIS<br />

char •mktemp (template)<br />

char •template;<br />

DESCRIPTION<br />

Mktemp replaces the contents of the string pointed to by template<br />

by a unique file name, and returns the address of template . The<br />

string in template should look like a file name with six trailing Xs;<br />

mktemp will replace the Xs with a letter and the current process<br />

ID. The letter will be chosen so that the resulting name does not<br />

duplicate an existing file.<br />

SEE ALSO<br />

getpid(2), tmpfile(3S), tmpnam(3S).<br />

BUGS<br />

It is possible to run out of letters.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!