yw_string_get_utf32

Name

yw_string_get_utf32 -- get value of string in UTF32

Synopsis


     #include <yw/string.h>
   

int yw_string_get_utf32(const YwString *s, uint32_t **chars, int *len);

DESCRIPTION

This function fetches value of *s in UTF32, host-endian, encoding and stores pointer to yw_malloc()ed vactor of characters at *chars. Length in characters (not bytes) is stored at *len, if it's not NULL.

RETURN VALUE

This function always returns 0, as it only copy characters back and fourth. Note that it's rather useless, as you have access to s->chars and s->len. Note, that it's up to the caller to yw_free(3) resulting vactor, which *chars is pointing at.

SEE ALSO

yw_string_get_cstring (3), yw_free (3),

INFO

Generated from: string.c,v 1.6 2001/05/23 08:46:01 malekith Exp.