CORBA Programming Reference
char * CORBA::string_dup (const char * Str);
This function dynamically allocates enough memory to hold a copy of its string argument, including the NULL character, copies the string argument into that memory, and returns a pointer to the new string.
This function does not throw CORBA exceptions.
If the function succeeds, the return value is a pointer to the new string; if the function fails, the return value is a nil pointer.
char* s = CORBA::string_dup("hello world");
CORBA::string_free
CORBA::string_alloc