Skip to main content

Name

ec_open_tmpfile3 — Open a file with a unique name in the specified a directory

Synopsis

#include "util.h"

| int **ec_open_tmpfile3** ( | outname, |   | |   | base); |   |

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

Description

Open a file with a unique name in the specified a directory.

**Configuration Change. ** This feature is available starting from Momentum 3.5.1.

Parameters

outname

A buffer of MAXPATHLEN bytes to store the file name.

base

The temporary directory to use.

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?