X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fwchar%2Fwcrtomb.c;h=287ff1d82534033d571b4d39b6716693774b6858;hb=5d2d7d278a2fabd52a252676c6e5b1bb9be630c7;hp=0372471957d557a7246f9c360df89cbba15b7f43;hpb=84f522b0a2fe01d976da2905a74e47b28edf99e1;p=pdclib diff --git a/functions/wchar/wcrtomb.c b/functions/wchar/wcrtomb.c index 0372471..287ff1d 100644 --- a/functions/wchar/wcrtomb.c +++ b/functions/wchar/wcrtomb.c @@ -1,7 +1,4 @@ -/* wcrtomb( - char *restrict s, - wchar_t wc, - mbstate_t *restrict ps); +/* wcrtomb( char * s, wchar_t wc, mbstate_t * ps ) This file is part of the Public Domain C Library (PDCLib). Permission is granted to use, modify, and / or redistribute at will. @@ -16,7 +13,12 @@ #include <_PDCLIB_encoding.h> #include <_PDCLIB_locale.h> -size_t wcrtomb_l( +#if 0 +/* + TODO: Other conversion functions call static ..._l helpers, but this one + does not, making this function "defined but not used". +*/ +static size_t wcrtomb_l( char *restrict s, wchar_t wc, mbstate_t *restrict ps, @@ -25,6 +27,7 @@ size_t wcrtomb_l( { return _PDCLIB_cwcrtomb_l(s, wc, ps, l); } +#endif size_t wcrtomb( char *restrict s,