X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fdigits.c;h=d921c2dd704d3e4ef763a9fdb9c64b97f1808764;hb=d865c4403fc91d1f1ac95ba76febcee9f429bb97;hp=b58886b052a248f9c782eaca5dc38e92f188e780;hpb=bb7adccc31cb145b671afe75c432da3fc494ad48;p=pdclib diff --git a/functions/_PDCLIB/digits.c b/functions/_PDCLIB/digits.c index b58886b..d921c2d 100644 --- a/functions/_PDCLIB/digits.c +++ b/functions/_PDCLIB/digits.c @@ -1,22 +1,26 @@ -/* $Id$ */ - -/* Release $Name$ */ - /* _PDCLIB_digits This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ -char _PDCLIB_digits[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"; +#include "_PDCLIB_int.h" + +char _PDCLIB_digits[] = "0123456789abcdefghijklmnopqrstuvwxyz"; + +/* For _PDCLIB/print.c only; obsolete with ctype.h */ +char _PDCLIB_Xdigits[] = "0123456789ABCDEF"; #ifdef TEST -#include <_PDCLIB_test.h> -int main() +#include "_PDCLIB_test.h" + +#include + +int main( void ) { - BEGIN_TESTS; - /* no tests for raw data */ + TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 ); + TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 ); return TEST_RESULTS; }