2 Copyright © 2007-2013, The AROS Development Team. All rights reserved.
8 /*****************************************************************************
16 wchar_t * restrict pwc,
17 const char * restrict s,
21 C99 mbtowc function; a function to convert one multi-byte character
22 to a wchar_t character and/or to determine the number of bytes for the
26 pwc: pointer wide char string to put converted char in. When NULL
27 no char will be converted.
28 s: pointer to multi-byte char as input
29 n: maximum of bytes to look at for the multi-byte char.
32 If s is not NULL the function returns the number of bytes the next
33 multi-byte character is made of; 0 if the char pointed to is NULL or
34 -1 if it is not a valid multi-byte char.
35 If s is NULL the function return zero or non-zero when multi-byte chars
36 resp. don't or do have state-dependent encodings.
39 stdc.library currenlty only supports "C" locale
40 This means that the function returns 0 when s is NULL and only 0, 1 or -1
51 Implemented as static inline function to adapt to changing wchar_t
54 ******************************************************************************/