![]() |
![]() |
e-docs > Tuxedo > Administering a Tuxedo Application at Run Time > CORBA API |
Administering a Tuxedo Application at Run Time
|
Synopsis
Makes a copy of a string.
C++ Binding
char * CORBA::string_dup (const char * Str);
Argument
Description
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.
Return Values
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.
Example
char* s = CORBA::string_dup("hello world");
See Also
CORBA::string_free
CORBA::string_alloc
![]() |
![]() |
![]() |
![]() |
||
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |