Back to index

glibc  2.9
tempnam.c File Reference
#include <stdio.h>
#include <string.h>

Go to the source code of this file.


char * tempnam (const char *dir, const char *pfx)

Function Documentation

char* tempnam ( const char *  dir,
const char *  pfx 

Definition at line 30 of file tempnam.c.

  char buf[FILENAME_MAX];

  if (__path_search (buf, FILENAME_MAX, dir, pfx, 1))
    return NULL;

  if (__gen_tempname (buf, 0, __GT_NOCREATE))
    return NULL;

  return __strdup (buf);

Here is the call graph for this function:

Here is the caller graph for this function: