Name
yw_string_assign_cstring -- assign string in given encoding
Synopsis
int yw_string_assign_cstring
(YwString *s,
const char *enc,
const char *chars,
int len);
DESCRIPTION
This function initializes *s to contain string encoded using
enc parameter
passed in chars parameter, of length (in bytes) len.
chars can be NULL if len is 0.
If len is -1 then length of chars parameter is determined
based on 0 terminator.
When enc is NULL -- default, locale-based, encoding
is used (see yw_get_default_encoding(3) for more details, on how it is
determined).
RETURN VALUE
This function returns 0 in case of success or one of yw_convert(3)
return codes when there is an error in parametrs encoding.
SEE ALSO
yw_string_free
(3),
INFO
Generated from: string.c,v 1.6 2001/05/23 08:46:01 malekith Exp.