implement mktemp

This commit is contained in:
Paul Sajna
2018-06-27 20:22:12 +00:00
committed by Jeremy Soller
parent a63e6b3dd8
commit 776491bae9
6 changed files with 83 additions and 13 deletions
+12
View File
@@ -0,0 +1,12 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv) {
char* string = (char*) calloc(20, sizeof(char));
strcpy(string, "tempXXXXXX");
mktemp(string);
printf("%s\n",string);
free(string);
return 0;
}