PT_PointCopyValue

PT_PointCopyValue — copies one point structure into another.

Syntax

#include <cogent.h>
void PT_PointCopyValue(PT_pCPOINT  dest,
 PT_pCPOINT  src);

Arguments

dest

The destination of the copy.

src

The source of the copy.

Returns

Nothing.

Description

This function copies all relevant information from one point structure to another. If the destination point is of type PT_TYPE_STRING, then free() will be called on its string value prior to the copy. If the source point is of PT_TYPE_STRING, then the value of the destination will be the result of a strdup() call on the source point's string value.