diff options
author | ptrcnull <git@ptrcnull.me> | 2021-09-22 21:15:43 +0200 |
---|---|---|
committer | ptrcnull <git@ptrcnull.me> | 2021-09-22 21:15:43 +0200 |
commit | cca99e842ebff24d4993dcda1831aaa81d229119 (patch) | |
tree | f68222a1e2faf36898a789bfd6dc7281c9ad8d2b /libgcompat | |
parent | 5bd1f89a69d906844aa6b28e672a5c5a44e88480 (diff) | |
download | gcompat-cca99e842ebff24d4993dcda1831aaa81d229119.tar.gz gcompat-cca99e842ebff24d4993dcda1831aaa81d229119.tar.bz2 gcompat-cca99e842ebff24d4993dcda1831aaa81d229119.tar.xz gcompat-cca99e842ebff24d4993dcda1831aaa81d229119.zip |
wchar: add __mbrlen
Diffstat (limited to 'libgcompat')
-rw-r--r-- | libgcompat/wchar.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libgcompat/wchar.c b/libgcompat/wchar.c index 930cc7c..78f7e02 100644 --- a/libgcompat/wchar.c +++ b/libgcompat/wchar.c @@ -1,7 +1,7 @@ #include <assert.h> /* assert */ #include <stdarg.h> /* va_list, va_start, va_end */ #include <stddef.h> /* size_t */ -#include <wchar.h> /* wchar_t, *wprintf */ +#include <wchar.h> /* wchar_t, *wprintf, mbstate_t */ int __vswprintf_chk(wchar_t *s, size_t n, int flag, size_t slen, const wchar_t *format, va_list ap); @@ -135,3 +135,8 @@ double wcstod_l(const wchar_t *nptr, wchar_t **endptr, locale_t loc) { return wcstod(nptr, endptr); } + + +size_t __mbrlen(const char *restrict s, size_t n, mbstate_t *restrict st) { + return mbrlen(s, n, st); +} |