X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2Fdigits.c;h=6fb7f071b13abf25ca03c335cf1978a67e232a35;hb=d6f1494a4f38a212b29a13ee713885058dcf0fe7;hp=6f360646f65514c66a2c8859724edf3f3b676c47;hpb=ee68216262558493cc862deb575fb0b97ed49429;p=pdclib diff --git a/functions/_PDCLIB/digits.c b/functions/_PDCLIB/digits.c index 6f36064..6fb7f07 100644 --- a/functions/_PDCLIB/digits.c +++ b/functions/_PDCLIB/digits.c @@ -1,19 +1,26 @@ -/* $Id$ */ - /* _PDCLIB_digits This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. */ +#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" + +#include int main( void ) { - /* no tests for raw data */ - return 0; + TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 ); + TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 ); + return TEST_RESULTS; } #endif