--- /dev/null
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* abs( int )
+
+ This file is part of the Public Domain C Library (PDCLib).
+ Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <stdlib.h>
+
+#ifndef REGTEST
+
+int abs( int j )
+{
+ return ( j >= 0 ) ? j : -j;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+#include <limits.h>
+
+int main()
+{
+ BEGIN_TESTS;
+ TESTCASE( abs( 0 ) == 0 );
+ TESTCASE( abs( INT_MAX ) == INT_MAX );
+ TESTCASE( abs( INT_MIN + 1 ) == -( INT_MIN + 1 ) );
+ return TEST_RESULTS;
+}
+
+#endif
--- /dev/null
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* labs( 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 <stdlib.h>
+
+#ifndef REGTEST
+
+long int labs( long int j )
+{
+ return ( j >= 0 ) ? j : -j;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+#include <limits.h>
+
+int main()
+{
+ BEGIN_TESTS;
+ TESTCASE( labs( 0 ) == 0 );
+ TESTCASE( labs( LONG_MAX ) == LONG_MAX );
+ TESTCASE( labs( LONG_MIN + 1 ) == -( LONG_MIN + 1 ) );
+ return TEST_RESULTS;
+}
+
+#endif
--- /dev/null
+/* $Id$ */
+
+/* Release $Name$ */
+
+/* llabs( 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 <stdlib.h>
+
+#ifndef REGTEST
+
+long long int llabs( long long int j )
+{
+ return ( j >= 0 ) ? j : -j;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+#include <limits.h>
+
+int main()
+{
+ BEGIN_TESTS;
+ TESTCASE( llabs( 0 ) == 0 );
+ TESTCASE( llabs( LLONG_MAX ) == LLONG_MAX );
+ TESTCASE( llabs( LLONG_MIN + 1 ) == -( LLONG_MIN + 1 ) );
+ return TEST_RESULTS;
+}
+
+#endif