Next: , Previous: , Up: Elementary string functions on NUL terminated strings   [Contents][Index]

4.5.5 Duplicating a NUL terminated Unicode string

The following function allocates a duplicate of a Unicode string.

Function: uint8_t * u8_strdup (const uint8_t *s)
Function: uint16_t * u16_strdup (const uint16_t *s)
Function: 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.