Commit 2b502554 authored by A. Wilcox's avatar A. Wilcox 🦊
Browse files

Merge branch 'mbrlen' into 'current'

wchar: add __mbrlen

See merge request !13
parents 5bd1f89a cca99e84
#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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment