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