X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=opt%2Fnotime%2Ftime.c;h=6a4743a48e35360d03e3db5a9fd3493b217c4f24;hb=7ef2d8e3f973420b1b717525d643e47337557938;hp=8f348196c4f9bbf898efa61ac28f225a4d83d535;hpb=f2e874bbb30fa8857975a683a17dce7669524520;p=pdclib.old diff --git a/opt/notime/time.c b/opt/notime/time.c index 8f34819..6a4743a 100644 --- a/opt/notime/time.c +++ b/opt/notime/time.c @@ -1,7 +1,19 @@ #include +#ifndef REGTEST time_t time(time_t* t) { if(t) *t = -1; return -1; -} \ No newline at end of file +} +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + return TEST_RESULTS; +} + +#endif \ No newline at end of file