]> pd.if.org Git - pdclib/blob - platform/example/functions/_PDCLIB/write.c
Added test driver.
[pdclib] / platform / example / functions / _PDCLIB / write.c
1 /* $Id$ */
2
3 /* _PDCLIB_write( _PDCLIB_fd_t, char const *, _PDCLIB_size_t )
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 <_PDCLIB_glue.h>
10
11 #ifndef REGTEST
12
13 int write(int, const void *, unsigned int);
14
15 _PDCLIB_size_t _PDCLIB_write( _PDCLIB_fd_t fd, char const * buffer, _PDCLIB_size_t n )
16 {
17     return write( fd, buffer, n );
18 }
19
20 #endif
21
22 #ifdef TEST
23 #include <_PDCLIB_test.h>
24
25 int main( void )
26 {
27     TESTCASE( NO_TESTDRIVER );
28     return TEST_RESULTS;
29 }
30
31 #endif