NonStop SOAP 4.1 User's Manual

The axutil_strdup()Function
Synopsis:
AXIS2_EXTERN void * axutil_strdup
(const axutil_env_t *env, const void *ptr)
Description:
This function duplicates the string passed to it.
Parameters:
env
is a pointer to an environment structure. It cannot have a NULL value.
ptr
is a pointer to the string that is duplicated.
Return Values:
This function returns a pointer to the newly created string.
The axutil_strndup()Function
Synopsis:
AXIS2_EXTERN void* axutil_strndup
( const axutil_env_t * env,
const void * ptr,
int n )
Description:
This function duplicates the first n characters of a string in the memory.
Parameters:
env
is a pointer to an environment structure. It cannot have a NULL value.
ptr
The string to duplicate.
n
The number of characters to duplicate.
Return Values:
This function returns the new string.
The axutil_strmemdup()Function
Synopsis:
AXIS2_EXTERN void* axutil_strmemdup
( const void * ptr,
size_t n,
const axutil_env_t * env )
Description:
This function creates a null-terminated string by making a copy of a sequence of characters and
appending a null byte. This is a faster alternative to axis2_strndup, for use when you know
that the string being duplicated has 'n' or more characters. If the string contains fewer characters,
use axis2_strndup.
Parameters:
ptr
is the block of characters that should be duplicated.
n
is the number of characters that should be duplicated.
380 NonStop SOAP 4 APIs