2
0

mktemp.c 258 B

12345678910111213
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <string.h>
  4. #include "test_helpers.h"
  5. int main(void) {
  6. char* string = (char*) calloc(20, sizeof(char));
  7. strcpy(string, "tempXXXXXX");
  8. mktemp(string);
  9. printf("%s\n",string);
  10. free(string);
  11. }