Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/helper/test-mktemp.c # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / helper / test-mktemp.c` 21 lines ยท 387 bytes Raw Blame History 1 /* 2 * test-mktemp.c: code to exercise the creation of temporary files 3 */ 4 #include "test-tool.h" 5 #include "git-compat-util.h" 6 7 int cmd__mktemp(int argc, const char **argv) 8 { 9 char *template; 10 int fd; 11 12 if (argc != 2) 13 usage("Expected 1 parameter defining the temporary file template"); 14 template = xstrdup(argv[1]); 15 16 fd = xmkstemp(template); 17 18 close(fd); 19 free(template); 20 return 0; 21 }