02.07.2013 Views

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

A/UX® Programmer's Reference Sections

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 filename<br />

SYNOPSIS<br />

char *mktemp (template)<br />

cha r * template;<br />

DESCRIPTION<br />

The function mktemp alters the contents of the string referenced<br />

by * template so that it becomes a unique filename. The string at<br />

* template should be initialized to a filenamed with six trailing x<br />

characters; mktemp replaces the xs with a letter and the current<br />

process 10. The letter is selected so that the resulting name is not<br />

a duplicate an existing file.<br />

RETURN VALUE<br />

mktemp returns the address of the unique (altered) filename. If a<br />

unique name cannot be created, template will point to a null<br />

(empty) string.<br />

SEE ALSO<br />

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

BUGS<br />

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

1 February, 1990<br />

Revision C

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

Saved successfully!

Ooh no, something went wrong!