]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/close.c
Comment cleanups.
[pdclib] / platform / example / functions / _PDCLIB / close.c
1 /* _PDCLIB_close( _PDCLIB_fd_t )
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 /* This is an example implementation of _PDCLIB_close() fit for use with POSIX
8    kernels.
9 */
10
11 #include <stdio.h>
12
13 #ifndef REGTEST
14 #include <_PDCLIB_glue.h>
15
16 extern int close( int fd );
17
18 int _PDCLIB_close( int fd )
19 {
20     return close( fd );
21 }
22
23 #endif
24
25 #ifdef TEST
26 #include <_PDCLIB_test.h>
27
28 int main( void )
29 {
30     /* No testdriver; tested in driver for _PDCLIB_open(). */
31     return TEST_RESULTS;
32 }
33
34 #endif