PT_PointCopyValue

Cogent API and Utilities: Version 4.1
Prev |  | Next

# `PT_PointCopyValue`

`PT_PointCopyValue` -- copies one point structure into another.

## Syntax

    #include <cogdb.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.

Prev | Home | Next
`PT_NewCPoint` | Up | `PT_PointFormat`

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.