kolibrios/programs/develop/libraries/kolibri-libc/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+");
}