PT_FindCPoint

PT_FindCPoint — looks up a point by name in the internal point hash table.

Syntax

#include <cogent.h>

PT_pCPOINT PT_FindCPoint(char* name);

Arguments

name

The point name to be found in the internal hash table created by PT_InitClient.

Returns

A pointer to a PT_stCPOINT structure, or NULL if PT_InitClient has not yet been called.

Description

This function looks up a point by name in the internal point hash table. If the point name does not exist, then a new point structure is created through a call to PT_NewCPoint, and the result is returned.

See Also

Point Structure, Storage, and Manipulation, PT_InitClient, PT_NewCPoint