char *StrDupWithoutSurrWhiteSpace (const char string[]);
Dynamically allocates a copy of a string, removing any leading or trailing white space.
Input | ||
Name | Type | Description |
string | const char [] | The string to copy. |
Name | Type | Description |
copyOfString | char * | Pointer to the dynamically allocated copy of the string. If there was insufficient memory for the allocation, this function returns NULL (0). |