/* $Id$ */
-/* Release $Name$ */
-
/* ldiv( long int, long int )
This file is part of the Public Domain C Library (PDCLib).
#ifdef TEST
#include <_PDCLIB_test.h>
-#ifndef _PDCLIB_CONFIG_H
-#include <_PDCLIB_config.h>
-#endif
-
int main( void )
{
ldiv_t result;
TESTCASE( result.quot == -2 && result.rem == -1 );
result = ldiv( 5, -2 );
TESTCASE( result.quot == -2 && result.rem == 1 );
- TESTCASE( sizeof( result.quot ) == _PDCLIB_LONG_BYTES );
- TESTCASE( sizeof( result.rem ) == _PDCLIB_LONG_BYTES );
+ TESTCASE( sizeof( result.quot ) == sizeof( long ) );
+ TESTCASE( sizeof( result.rem ) == sizeof( long ) );
return TEST_RESULTS;
}