Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
wenjun1055 committed Jan 30, 2013
1 parent 0372557 commit dbd717c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
Binary file modified a.out
Binary file not shown.
19 changes: 19 additions & 0 deletions tmpnam.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#include <stdio.h>
#include <stdlib.h>

int main()
{
char tmpname[L_tmpnam];
char *filename;
FILE *tmpfp;

filename = tmpnam(tmpname);

printf("Temporary file name is:%s\n", filename);
tmpfp = tmpfile();
if (tmpfp)
printf("Opened a temporary file OK\n");
else
perror("tmpfile");
exit(0);
}

0 comments on commit dbd717c

Please sign in to comment.