2 * mblen: determine the length of a multibyte character.
3 * Copyright (C) 2009 Nick Bowler.
5 * License LGPLv3+: GNU LGPL version 3 or later. See COPYING.LIB for terms.
6 * See <http://www.gnu.org/licenses/lgpl.html> if you did not receive a copy.
7 * This is free software: you are free to change and redistribute it.
8 * There is NO WARRANTY, to the extent permitted by law.
12 #include <cstd/locale.h>
14 int (mblen
)(const char *s
, size_t n
)
19 wc
= __cstd_conv
->decode(s
, &end
, n
);