Usage
Allocates storage from Net.Data's run-time heap and copies the string specified by string into the allocated storage using dtw_malloc(). If Net.Data cannot return the requested storage, it returns a NULL pointer.
Format
char *dtw_strdup(char *string)
Parameters
string | A pointer to the string value to copy into the storage allocated. |
Examples
char *myString = "This string will be duplicated."; char *myDupString; myDupString = dtw_strdup(myString);