kolibrios-fun/programs/develop/ktcc/trunk/libc.obj/source/stdio/tmpfile.c

12 lines
155 B
C
Raw Normal View History

#include <stdio.h>
FILE *tmpfile(void) {
char name[FILENAME_MAX + 1];
if (!tmpnam(name)) {
return NULL;
}
return fopen(name, "wb+");
}