]> pd.if.org Git - pdclib/blobdiff - functions/time/timespec.c
time.h stubs.
[pdclib] / functions / time / timespec.c
diff --git a/functions/time/timespec.c b/functions/time/timespec.c
new file mode 100644 (file)
index 0000000..2781e6c
--- /dev/null
@@ -0,0 +1,27 @@
+/* timespec_get( struct timespec *, int )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <time.h>
+
+#ifndef REGTEST
+
+int timespec_get( struct timespec * ts, int base )
+{
+    return 0;
+}
+
+#endif
+
+#ifdef TEST
+
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return NO_TESTDRIVER;
+}
+
+#endif