Next: Searching for a character in a NUL terminated Unicode string, Previous: Comparing NUL terminated Unicode strings, Up: Elementary string functions on NUL terminated strings [Contents][Index]
The following function allocates a duplicate of a Unicode string.
uint8_t * u8_strdup (const uint8_t *s) ¶ uint16_t * u16_strdup (const uint16_t *s) ¶ uint32_t * u32_strdup (const uint32_t *s) ¶ Duplicates s, returning an identical malloc’d string.
This function is similar to strdup and wcsdup, except
that it operates on Unicode strings.