X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmultibyte%2Fwcstombs.c;h=ab152874db940934148ef0e2e357db2ccba1042f;hb=23ab8c255543a7e0876c7e1858ef0d4bbd562729;hp=b6ae4732f43f8dba83dc2f0616fc74fd084d25ae;hpb=400c5e5c8307a2ebe44ef1f203f5a15669f20347;p=musl diff --git a/src/multibyte/wcstombs.c b/src/multibyte/wcstombs.c index b6ae4732..ab152874 100644 --- a/src/multibyte/wcstombs.c +++ b/src/multibyte/wcstombs.c @@ -1,18 +1,7 @@ -/* - * This code was written by Rich Felker in 2010; no copyright is claimed. - * This code is in the public domain. Attribution is appreciated but - * unnecessary. - */ - #include -#include #include -#include - -#include "internal.h" size_t wcstombs(char *restrict s, const wchar_t *restrict ws, size_t n) { - const wchar_t * x = ws; - return wcsrtombs(s, &x, n, 0); + return wcsrtombs(s, &(const wchar_t *){ws}, n, 0); }