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