X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2F_PDCLIB%2F_PDCLIB_digits.c;fp=functions%2F_PDCLIB%2F_PDCLIB_digits.c;h=52a7ae38585a13978b8069bb3066a9a5bf193271;hb=3082b97d8f2de1584430ad42671a0e056ed33be4;hp=0000000000000000000000000000000000000000;hpb=d7f27d5325d7c44d93be00662b13aa9ffdec76b1;p=pdclib diff --git a/functions/_PDCLIB/_PDCLIB_digits.c b/functions/_PDCLIB/_PDCLIB_digits.c new file mode 100644 index 0000000..52a7ae3 --- /dev/null +++ b/functions/_PDCLIB/_PDCLIB_digits.c @@ -0,0 +1,32 @@ +/* $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. +*/ + +#ifndef REGTEST +#include <_PDCLIB_int.h> +#endif + +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 ) +{ +#ifndef REGTEST + TESTCASE( strcmp( _PDCLIB_digits, "0123456789abcdefghijklmnopqrstuvwxyz" ) == 0 ); + TESTCASE( strcmp( _PDCLIB_Xdigits, "0123456789ABCDEF" ) == 0 ); +#endif + return TEST_RESULTS; +} + +#endif