TerMbcsLen
Get the length of an MBCS string.
long TerMbcsLen(string)
LPBYTE string; | The pointer to the mbcs string. |
Return Value: If the given string is a single-byte string, then this function returns the byte length of the string. If the given string is a multi-byte string, then this function returns number of characters in the strings. For example, consider a strings containing 2 double-byte characters and 2 single-byte characters. Then this function will return 4 (whereas the actual byte length of the string would be 6).