BizHawk/waterbox/libc/functions/stdio/tmpfile.c

35 lines
475 B
C

/* tmpfile( void )
This file is part of the Public Domain C Library (PDCLib).
Permission is granted to use, modify, and / or redistribute at will.
*/
#include <stdio.h>
#ifndef REGTEST
#include <errno.h>
#include "_PDCLIB_glue.h"
/* This is a stub implementation of tmpfile
*/
FILE* tmpfile( void )
{
errno = ENOTSUP;
return NULL;
}
#endif
#ifdef TEST
#include "_PDCLIB_test.h"
#include <string.h>
int main( void )
{
return TEST_RESULTS;
}
#endif