gtpc2m7zC/C++ Language Support User's Guide

tpf_decb_swapblk-Swap a Storage Block with a Data Event Control Block

This function swaps the storage block that is held in a data event control block (DECB) with an entry control block (ECB) data level.

Format

#include <c$decb.h>
void tpf_decb_swapblk(TPF_DECB *decb, enum t_lvl level);
 

decb
A pointer to the DECB.

level
One of 16 possible values representing a valid ECB data level from enumeration type t_lvl, expressed as Dx, where x represents the hexadecimal number of the level (0-F).

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example swaps the core block and associated information between ECB data level 2 (D2) and the indicated DECB.

#include <c$decb.h>

·
·
·
TPF_DECB *decb;
·
·
·
tpf_decb_swapblk(decb, D2); /* swap storage block on decb and D2 */
·
·
·

Related Information

See TPF Application Programming for more information about DECBs.