SCIMBridge  0.4.x
ssize_t scim_bridge_wstring_to_string ( char **  str,
const wchar wstr 
)

Translate an ucs4 wide string into an utf8 string.

Parameters
wstrWide string to translate.
strThe destination for the new string.
Returns
The length of the new string. -1 means that it failed to translate.

References RETVAL_FAILED, scim_bridge_perrorln(), and scim_bridge_wstring_get_length().