gtpc2m80C/C++ Language Support User's Guide

tpf_decb_validate-Validate a Data Event Control Block

This function validates that a specified data event control block (DECB) is an active and valid DECB.

Format

#include <c$decb.h>
DECBC_RC tpf_decb_validate(TPF_DECB *decb);
 

decb
A pointer to the DECB.

Normal Return

DECBC_OK.

Error Return

DECBC_NOTVALID.

Programming Considerations

Examples

The following example validates a DECB address.

#include <c$decb.h>

·
·
·
TPF_DECB *decb;
·
·
·
if ( tpf_decb_validate(decb) == DECBC_OK ) { /* DECB is valid */ } else { /* DECB is not valid */ }

Related Information

See TPF Application Programming for more information about DECBs.