C++
ACDBCORE2D_PORT ACHAR * acad__strdup( const ACHAR * p );
File
acmem.h
Description
This function allocates enough memory to hold a copy of string p, and then copies p (including the string terminator) into the newly-allocated memory.
Returns a pointer to the string copy if successful. Otherwise, returns null.
Note
The acad_free() function should be used to release the returned string.
Parameters
Parameters | Description |
---|---|
p | Input pointer to string to be copied |