]> pd.if.org Git - pdclib/blobdiff - platform/example/functions/_PDCLIB/write.c
Yet closer to functional output.
[pdclib] / platform / example / functions / _PDCLIB / write.c
diff --git a/platform/example/functions/_PDCLIB/write.c b/platform/example/functions/_PDCLIB/write.c
new file mode 100644 (file)
index 0000000..2489234
--- /dev/null
@@ -0,0 +1,31 @@
+/* $Id$ */
+
+/* _PDCLIB_write( _PDCLIB_fd_t, char const *, _PDCLIB_size_t )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <_PDCLIB_glue.h>
+
+#ifndef REGTEST
+
+int write(int, const void *, unsigned int);
+
+_PDCLIB_size_t _PDCLIB_write( _PDCLIB_fd_t fd, char const * buffer, _PDCLIB_size_t n )
+{
+    return write( fd, buffer, n );
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif