gtpc2m7yC/C++ Language Support User's Guide

tpf_decb_release-Release a Data Event Control Block

This function provides interfaces to release a data event control block (DECB).

Format

#include <c$decb.h>
void tpf_decb_release(TPF_DECB *decb); 

or

#include <c$decb.h>
void tpf_decb_release (char *name);

decb
A pointer to the DECB to be released.

name
A pointer to a 16-byte user-specified DECB name. The DECB name was previously specified on a tpf_decb_create call.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example locates a DECB and releases it.

#include <c$decb.h>

·
·
·
DECBC_RC rc; TPF_DECB *decb; char decb_name[16] = "APPLWXY";
·
·
·
if ( (decb = tpf_decb_locate(decb_name, &rc)) != NULL ); { tpf_decb_release(decb); /* release the DECB that was located */ } else { /* failed to locate DECB, check rc for the reason */ }

Related Information

See TPF Application Programming for more information about DECBs.