Pyramid* tsmCopyPyramid ( const Pyramid *pyramid, char *new_url ) Copy a pyramid structure
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).