Skip navigation.

CORBA Programming Reference

  Previous Next vertical dots separating previous/next from contents/index/pdf Contents View as PDF   Get Adobe Reader

 


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

 

Skip navigation bar  Back to Top Previous Next