C/stdio.h/tmpnam — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 14:20, 25 мая 2010
tmpnam: generates a unique filename
//Declaration: char *tmpnam(char *name);
//Parameters: *name should be at least L_tmpnam characters long. L_tmpnam is defined in <stdio.h>.
//Return: the unique temp name on success or a null pointer on error.
#include <stdio.h>
int main(void)
{
char name[40];
int i;
for(i=0; i<3; i++) {
tmpnam(name);
printf("%s ", name);
}
return 0;
}