2 Copyright © 2007-2012, The AROS Development Team. All rights reserved.
8 /*****************************************************************************
20 Converts one wide char to a multi-byte char.
23 wchar: wide char to convert
24 s: string pointer to put the converted char into.
27 If s is not NULL it returns the number of chars written into s;
28 zero is returned when wchar is a NULL character; -1 when the character
30 If s is NULL the function returns zero or non-zero when multi-byte
31 string resp don't or do have state-dependent encodings.
34 stdc.library currently only implements "C" locale.
35 This means that 0 is returned when s is NULL and 0, 1 or -1 when s is
45 Implemented as static inline function to adapt to changing wchar_t
48 ******************************************************************************/