Pyramid* tsmCopyPyramid ( const Pyramid *pyramid, char *new_url )

Copy a pyramid structure

Documentation

Copy a pyramid structure.

Takes a pyramid structure and creates a copy of this, returning a pointer to the newly allocated structure. All of the strings, arrays, and other pointer fields are duplicated so that there are no common pointers between the two copies of the pyramid. As an option you can also specify a new URL with which to anchor the pyramid (specifying a new_url of NULL will just copy the url information from the source pyramid).

Returns:
the copied pyramid structure
Parameters:
pyramid - the pyramid to be copied
new_url - the base URL of the new pyramid (NULL means keep same)
Author:
Martin Reddy
Version:
16 September 1997
See Also:
tsmAllocTspec, tsmFreeTspec


TSMAPI_RELEASE 2.1 - Release Date: 2001/01/10 19:01:12

Back to tsmApi Home Page