2 Copyright © 2004-2013, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
10 /*****************************************************************************
22 This function returns the number of bytes of the next multi-byte
26 s: string pointer to look at next multi-byte character.
27 n: The maximum number of bytes to look at.
30 if s is not NULL will return the length in bytes of the next
31 multi-byte character in s; 0 is return when it is a NULL
32 byte character; -1 if it is not a valid multi-byte character.
33 If s is NULL zero or non-zero is returned when multi-byte encodings
34 resp. don't or do have state-dependent encodings.
37 stdc.library currently only implements the "C" locale
38 This means that either 0 or 1 is returned when s is not NULL.
48 ******************************************************************************/
51 /* No state-dependent encondings */
54 if (n
== 0 || *s
== '\0')