Returns a number of bytes occupied by the cchInput multibyte symbols of a string.
- Parameters
-
[in] | pszString | is the string of cchInput multibyte characters. The string need not to be zero-terminated unless cchInput is (size_t) -1. |
[in] | cchInput | is a size of the string in multibyte characters corresponding to the returned byte size. |
- Returns
- The function returns a number of bytes occupied by the string or (size_t) -1 if error occurs. Use GetLastChsvError to get extended information. If the input string contains an invalid multibyte character the error code set is CHSVERROR_INVALID_CHAR_SEQUENCE.