Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.tmpnam Method

Generate a temporary file name. [Edit]

[System.Obsolete("Syscall.mkstemp() should be preferred.")]
public static string tmpnam (System.Text.StringBuilder s)

Parameters

s
Buffer to store the temporary filename into [Edit]

Returns

Returns a file name on success, and null on error. [Edit]

Remarks

The tmpnam() function returns a pointer to a file name, in the /tmp directory, which did not reference an existing file at some indeterminate point in the past. If the argument s is not null, the file name is copied into the buffer it references.

The buffer referenced by s is expected to be at least Stdlib.L_tmpnam bytes in length.

[Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0