Multibyte code to wide character code conversion subroutines

The following subroutines are used when converting from multibyte code to wide character code:

mblen
Determines the length of a multibyte character. Do not use p++ to increment a pointer in a multibyte string. Use the mblen subroutine to determine the number of bytes that compose a character.
mbstowcs
Converts a multibyte string to a wide character string.
mbtowc
Converts a multibyte character to a wide character.