Tuxedo
0

Administering a Tuxedo Application at Run Time

 Previous Next Contents View as PDF  

CORBA::string_dup

Synopsis

Makes a copy of a string.

C++ Binding

char * CORBA::string_dup (const char * Str); 

Argument

Str

The address of the string to be copied.

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

 

Back to Top Previous Next
Contact e-docsContact BEAwebmasterprivacy