]> pd.if.org Git - pdclib/blob - platform/example/functions/stdio/tmpfile.c
PDCLib includes with quotes, not <>.
[pdclib] / platform / example / functions / stdio / tmpfile.c
1 /* tmpfile( void )
2
3    This file is part of the Public Domain C Library (PDCLib).
4    Permission is granted to use, modify, and / or redistribute at will.
5 */
6
7 #include <stdio.h>
8
9 #ifndef REGTEST
10
11 #include <errno.h>
12 #include "_PDCLIB_glue.h"
13
14 /* This is a stub implementation of tmpfile
15 */
16 FILE* tmpfile( void )
17 {
18     errno = ENOTSUP;
19     return NULL;
20 }
21
22 #endif
23
24 #ifdef TEST
25 #include "_PDCLIB_test.h"
26 #include <string.h>
27
28 int main( void )
29 {
30     return TEST_RESULTS;
31 }
32
33 #endif
34