Skip to content

MTY_Strdup

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Duplicate a string.

char *MTY_Strdup(
    const char * str
);

Parameters

str (const char *)

String to duplicate.

Return value

char *

This function can not return NULL. It will call abort() on failure.

The returned buffer must be destroyed with MTY_Free.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: Memory

Clone this wiki locally