tmpnam
Syntax:
  #include <cstdio>
  char *tmpnam( char *name );

The tmpnam() function creates an unique filename and stores it in name. tmpnam() can be called up to TMP_MAX times.