gtpc2m44C/C++ Language Support User's Guide

glob_keypoint-Keypoint TPF Global Field or Record

This function causes the keypointing of the specified TPF global field or record.

Format

#include <tpfglbl.h>
#include <c$globz.h>
void glob_keypoint(unsigned int tagname);

tagname
This argument, which is defined in header file c$globz.h, uniquely identifies the TPF global field or record to be keypointed.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example modifies and keypoints a global record.

#include <tpfglbl.h>
#include <c$globz.h>

·
·
·
{ /******************************************************************/ /* Increment data element mykdata in keypointable global record */ /* _mykglob. */ /******************************************************************/ struct mykglbrec **mkgrptrptr = glob(_mykglob); struct mykglbrec *mkgrptr = *mkgrptrptr; long newdata = mkgrptr->mykdata + 1; glob_modify(_mykglob, &mkgrptr->mykdata, &newdata, sizeof mkgrptr->mykdata); glob_keypoint(_mykglob); }

Related Information