FUNCTION c_ptopen (ptdesc, hname, pttype, acc, pthdr)
int *ptdesc;
char *hname;
long *pttype;
long *acc;
long *pthdr;
PTTYPE description structure
TPS (1) --> Tie Point Selection file TPSHEAD
MTP (2) --> Merged Tie Point file MTPHEAD
TPL (3) --> Tie Point Location file TPLHEAD
= IREAD : (0) --> for read access
= IWRITE: (1) --> for write access
When acc = IREAD, this routine opens an existing tie point file for read access. The type of tie point file created is contained in the pttype parameter. A file descriptor (ptdesc), as well as the file's header record is returned.
E_SUCC (0) --> successful completion
E_FAIL (-1) --> operation failed