Measures the width of a character in the specified code page.
#include <unilib.h>
int dbcs_width (
int codepage,
const char *str );
(IN) Specifies the code page. For a list of code pages, see Section 12.1, Supported Code Pages.
(IN) Points to a string with characters to evaluate.
If successful, returns the width of the code page characters (either 1 for single-byte or 2 for double- byte characters). Otherwise, returns a negative error code.