cfunc.writet C Function/C Functions

cfunc.writet

Command cfunc.writet C Function/C Functions
Applicable release versions: AP 6.1
Category C Functions (120)
Description equivalent to the Pick/BASIC statements: writet

type Pick/BASIC statement

_CP_WRITET_ELSE writet string else return -1
_CP_WRITET_ONERR writet string onerr return -1
_CP_WRITET_L_ELSE writetl string onerr return -1
_CP_WRITET_L_ONERR writetl string onerr return -1

This function returns -1 if an error occurs. The error code is contained in _CP_errno. PE_TAPE indicates a tape error.
Syntax int _CP_writet(int type, CPSTR* string)
Options
Example
The following example writes the next tape block.

CPSTR * xx = _CP_mkstrl("data",4);

_CP_writet(_CP_WRITET_ELSE, xx);
Purpose
Related cfunc.introduction
cfunc.weof
cfunc.readt