Create a unique file name

From , 2 Years ago, written in C, viewed 228 times.
URL https://pastebin.vip/view/d6bcb486
  1. #include <dir.h>
  2. #include <stdio.h>
  3.  
  4. int main(void)
  5. {
  6.    /* fname defines the template for the
  7.      temporary file.  */
  8.  
  9.    char *fname = "TXXXXXX", *ptr;
  10.  
  11.    ptr = mktemp(fname);
  12.    printf("%s\n",ptr);
  13.    return 0;
  14. }

Reply to "Create a unique file name"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website