Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/locale/wcsnrtombs.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
#include "mblocal.h" | #include "mblocal.h" | ||||
size_t | size_t | ||||
wcsnrtombs_l(char * __restrict dst, const wchar_t ** __restrict src, size_t nwc, | wcsnrtombs_l(char * __restrict dst, const wchar_t ** __restrict src, size_t nwc, | ||||
size_t len, mbstate_t * __restrict ps, locale_t locale) | size_t len, mbstate_t * __restrict ps, locale_t locale) | ||||
{ | { | ||||
FIX_LOCALE(locale); | FIX_LOCALE(locale); | ||||
if (ps == NULL) | if (ps == NULL) | ||||
ps = &locale->wcsnrtombs; | ps = &(XLOCALE_CTYPE(locale)->wcsnrtombs); | ||||
return (XLOCALE_CTYPE(locale)->__wcsnrtombs(dst, src, nwc, len, ps)); | return (XLOCALE_CTYPE(locale)->__wcsnrtombs(dst, src, nwc, len, ps)); | ||||
} | } | ||||
size_t | size_t | ||||
wcsnrtombs(char * __restrict dst, const wchar_t ** __restrict src, size_t nwc, | wcsnrtombs(char * __restrict dst, const wchar_t ** __restrict src, size_t nwc, | ||||
size_t len, mbstate_t * __restrict ps) | size_t len, mbstate_t * __restrict ps) | ||||
{ | { | ||||
return wcsnrtombs_l(dst, src, nwc, len, ps, __get_locale()); | return wcsnrtombs_l(dst, src, nwc, len, ps, __get_locale()); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 68 Lines • Show Last 20 Lines |