UNIXworkcode

1 #include <stdlib.h> 2 3 static void test_mkstemp() { 4 char tpl[] = "/tmp/testXXXXXX"; 5 int fd = mkstemp(tpl); 6 // never called, no need to close fd 7 } 8 9 int main() { 10 return 0; 11 } 12