Skip to main content

Name

ec_open_tmpfile2 — Open a file with a unique name and store the name in outname

Synopsis

#include "util.h"

| int **ec_open_tmpfile2** ( | outname); |   |

char * <var class="pdparam">outname</var>;

Description

Open a file with a unique name and store the name in outname.

Parameters

outname

A buffer of MAXPATHLEN bytes to store the file name.

Return Values

On success this function returns a file descriptor; on failure, -1.

Threading

It is legal to call this function in any thread.

See Also

Was this page helpful?