X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdlib%2Flldiv.c;fp=functions%2Fstdlib%2Flldiv.c;h=349ff2b0a8b78fa5173100e1a43db79e169c4b7e;hp=0000000000000000000000000000000000000000;hb=3645cf5a3d3d1344b7863b5202a2d107c0f1964b;hpb=ec01598cc2925e0bb00a50dd60ccd5ab5d3cbe57 diff --git a/functions/stdlib/lldiv.c b/functions/stdlib/lldiv.c new file mode 100644 index 0000000..349ff2b --- /dev/null +++ b/functions/stdlib/lldiv.c @@ -0,0 +1,37 @@ +/* $Id$ */ + +/* Release $Name$ */ + +/* lldiv( long long int, long long int ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include + +#ifndef REGTEST + +lldiv_t lldiv( long long int numer, long long int denom ) +{ + lldiv_t rc; + rc.quot = numer / denom; + rc.rem = numer % denom; + /* TODO */ + return rc; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main() +{ + int NO_TESTDRIVER = 0; + BEGIN_TESTS; + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif