gtpc2m1wC/C++ Language Support User's Guide

evinc-Increment Count for Event

This function increments the count for a count event after the event has been defined with the evntc function. An evnwc function cannot have been issued for the event before the evinc call.

Format

#include  <tpfapi.h>
int       evinc(struct ev0bk *evninf);

evinf
The evinc parameter block. For more information about the evinc parameter block, see struct ev0bk.

Normal Return

Integer value of zero.

Error Return

An integer value of 1 is returned if the event is not found.

Programming Considerations

Examples

The following example increments the count of the event pointed to by event_ptr.

#include <tpfeq.h>
struct ev0bk *event_ptr;

·
·
·
evntc(event_ptr, EVENT_CNT, 'N', 250, EVNTC_NORM); evinc(event_ptr);

Related Information