#include <stdlib.h>
#include <string.h>
char *ss = "/tmp/fileXXXXXX";
char *s = (char *)malloc(strlen(ss));
strcpy(s, ss);
puts(mktemp(s));
free(s);
Create tmp file
Create a temporary file inside /tmp folder
0 Comments
Add Comment
Log in to add a comment