2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS system libraries
4 * FILE: lib/sdk/crt/mbstring/mbstrlen.c
5 * PURPOSE: Determines the length of a multi byte string, current locale
7 * Copyright 1999 Alexandre Julliard
8 * Copyright 2000 Jon Griffths
15 int isleadbyte(int byte
);
20 size_t _mbstrlen( const char *str
)
25 /* FIXME: According to the documentation we are supposed to test for
26 * multi-byte character validity. Whatever that means
28 str
+= isleadbyte(*str
) ? 2 : 1;