1 /* wcrtomb( char * s, wchar_t wc, mbstate_t * ps )
3 This file is part of the Public Domain C Library (PDCLib).
4 Permission is granted to use, modify, and / or redistribute at will.
13 #include "_PDCLIB_encoding.h"
14 #include "_PDCLIB_locale.h"
18 TODO: Other conversion functions call static ..._l helpers, but this one
19 does not, making this function "defined but not used".
21 static size_t wcrtomb_l(
24 mbstate_t *restrict ps,
28 return _PDCLIB_cwcrtomb_l(s, wc, ps, l);
35 mbstate_t *restrict ps
39 return _PDCLIB_cwcrtomb(s, wc, ps ? ps : &st);
45 #include "_PDCLIB_test.h"
49 TESTCASE( NO_TESTDRIVER );