#include #include #include #include extern int errno; main(int argc, char ** argv) { char *s; s=strdup(argv[1]); printf("mktemp: %s\n", mktemp(s)); free(s); s=strdup(argv[1]); printf("tmpnam: %s\n", tmpnam(s)); free(s); s=strdup(argv[1]); printf("tempnam: %s\n", tempnam(NULL,s)); free(s); }