X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Flocale%2F_PDCLIB_mb_cur_max.c;fp=functions%2Flocale%2F_PDCLIB_mb_cur_max.c;h=a5f459d78215a4f22a1a30172080ce024231ec9d;hb=fb44227179cd8d0dbaaf694fba2d4861106add75;hp=0000000000000000000000000000000000000000;hpb=05e42cc13607c23332b98063de2cc2b64431c15c;p=pdclib.old diff --git a/functions/locale/_PDCLIB_mb_cur_max.c b/functions/locale/_PDCLIB_mb_cur_max.c new file mode 100644 index 0000000..a5f459d --- /dev/null +++ b/functions/locale/_PDCLIB_mb_cur_max.c @@ -0,0 +1,27 @@ +/* _PDCLIB_mb_cur_max( void ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include +#ifndef REGTEST +#include <_PDCLIB_locale.h> +#include <_PDCLIB_encoding.h> + +size_t _PDCLIB_mb_cur_max( void ) +{ + return _PDCLIB_threadlocale()->_Codec->__mb_max; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} +#endif