#include <cstdio> char *tmpnam( char *name );
The tmpnam() function creates a unique filename and stores it in name. tmpnam() can be called up to TMP_MAX times.