]> pd.if.org Git - pdclib/blobdiff - functions/time/mktime.c
time.h stubs.
[pdclib] / functions / time / mktime.c
diff --git a/functions/time/mktime.c b/functions/time/mktime.c
new file mode 100644 (file)
index 0000000..fc3759e
--- /dev/null
@@ -0,0 +1,27 @@
+/* mktime( struct tm * )
+
+   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
+
+time_t mktime( struct tm * timeptr )
+{
+    return -1;
+}
+
+#endif
+
+#ifdef TEST
+
+#include "_PDCLIB_test.h"
+
+int main( void )
+{
+    return NO_TESTDRIVER;
+}
+
+#endif