Flashnux

GNU/Linux man pages

Livre :
Expressions régulières,
Syntaxe et mise en oeuvre :

ISBN : 978-2-7460-9712-4
EAN : 9782746097124
(Editions ENI)

GNU/Linux

RedHat 5.2

(Apollo)

tmpnam(3)


TMPNAM

TMPNAM

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

NAME

tmpnam − create a name for a temporary file

SYNOPSIS

#include <stdio.h>

char *tmpnam(char *s);

DESCRIPTION

The tmpnam() function generates a unique temporary filename using the path prefix P_tmpdir defined in <stdio.h>. If the argument s is NULL, tmpnam() returns the address of an internal static area which holds the filename, which is overwritten by subsequent calls to tmpnam(). If s is not NULL, the filename is returned in s.

RETURN VALUE

The tmpnam() function returns a pointer to the unique temporary filename, or NULL if a unique name cannot be generated.

ERRORS

EEXIST

Unable to generate a unique filename.

CONFORMING TO

SVID 3, POSIX, BSD 4.3, ISO 9899

SEE ALSO

mktemp(3), mkstemp(3), tempnam(3), tmpfile(3)



tmpnam(3)