c_ptio - Reads and writes data records to/from a tie point file
SYNTAX
#include "geompak.h"
FUNCTION c_ptio (ptdesc, ptdata)
int *ptdesc;
long *ptdata;
PARAMETERS
ptdesc (output, integer)
File descriptor used by the tie point I/O routines.
ptdata (output, long)
A pointer to a structure which will contain the tie point data
record information for the type of tie point file being accessed:
Type of File C structure
Tie Point Selection data TPSDATA
Merged Tie Point data MTPDATA
Tie Point Location data TPLDATA
DESCRIPTION
This routine will sequentially read or write a tie point file, one data record at a time. The type of tie
point file as well as whether the file is read from or written to is determined when the file was
opened.
RETURN VALUE
c_ptio() returns
E_SUCC (0) --> successful completion
E_FAIL (-1) --> operation failed
E_EOF (-2) --> end of file
SPECIAL CONSIDERATIONS:
The c_ptio() call is for C only.