5 This file is part of the Public Domain C Library (PDCLib).
6 Permission is granted to use, modify, and / or redistribute at will.
13 long int labs( long int j )
15 return ( j >= 0 ) ? j : -j;
21 #include <_PDCLIB_test.h>
26 TESTCASE( labs( 0 ) == 0 );
27 TESTCASE( labs( LONG_MAX ) == LONG_MAX );
28 TESTCASE( labs( LONG_MIN + 1 ) == -( LONG_MIN + 1 ) );