X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fwchar%2Fwcrtomb.c;h=d6ed4248a49b714e0dcb716630b247c923af8319;hb=abc15df6b9fae3374d24c7cf5c3ab94c605b2a6d;hp=79a1433d564756ecbb15912925a9a4475d0c5ec3;hpb=14bc57c5c4d93263e08fe50e67eb61815cd0592f;p=pdclib diff --git a/functions/wchar/wcrtomb.c b/functions/wchar/wcrtomb.c index 79a1433..d6ed424 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. @@ -13,9 +10,14 @@ #include #include #include -#include <_PDCLIB_encoding.h> -#include <_PDCLIB_locale.h> +#include "_PDCLIB_encoding.h" +#include "_PDCLIB_locale.h" +#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, @@ -25,6 +27,7 @@ static size_t wcrtomb_l( { return _PDCLIB_cwcrtomb_l(s, wc, ps, l); } +#endif size_t wcrtomb( char *restrict s, @@ -39,7 +42,7 @@ size_t wcrtomb( #endif #ifdef TEST -#include <_PDCLIB_test.h> +#include "_PDCLIB_test.h" int main( void ) {