13 lines
256 B
C
13 lines
256 B
C
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
|
|
int main(void) {
|
|
char* string = (char*) calloc(20, sizeof(char));
|
|
strcpy(string, "tempXXXXXX");
|
|
mktemp(string);
|
|
printf("%s\n",string);
|
|
free(string);
|
|
return EXIT_SUCCESS;
|
|
}
|