2 Copyright © 2004-2012, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
10 /*****************************************************************************
24 This function returns the number of bytes of the next multi-byte
28 s: string pointer to look at next multi-byte character.
29 n: The maximum number of bytes to look at.
32 if s is not NULL will return the length in bytes of the next
33 multi-byte character in s; 0 is return when it is a NULL
34 byte character; -1 if it is not a valid multi-byte character.
35 If s is NULL zero or non-zero is returned when multi-byte encodings
36 resp. don't or do have state-dependent encodings.
39 arosc.library currently only implements the "C" locale
40 This means that either 0 or 1 is returned when s is not NULL.
50 ******************************************************************************/
53 /* No state-dependent encondings */
56 if (n
== 0 || *s
== '\0')