VMS Help  —  CRTL  tmpnam
    Generates filenames that can be safely used for a temporary file.

    Format

      #include  <stdio.h>

      char *tmpnam  (char *name);

1  –  Function Variants

    The tmpnam function has variants named _tmpnam32 and _tmpnam64
    for use with 32-bit and 64-bit pointer sizes, respectively.

2  –  Argument

 name

    A character string containing a name to use in place of file-name
    arguments in functions or macros. Successive calls to tmpnam with
    a null argument cause the function to overwrite the current name.

3  –  Return Value

    x                  If the name argument is the NULL pointer
                       value NULL, tmpnam returns the address of
                       an internal storage area. If name is not NULL,
                       then it is considered the address of an area
                       of length L_tmpnam (defined in the <stdio.h>
                       header file). In this case, tmpnam returns the
                       name argument as the result.
Close Help