cfunc.writet

C Function/C Functions, Releases: AP 6.1

Pick/BASIC 'writet' functionality from C.

Syntax

int _CP_writet(int type, CPSTR* string)

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.

Example

The following example writes the next tape block.

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

_CP_writet(_CP_WRITET_ELSE, xx);

See Also

Command Name Type Description
cfunc.introduction Introductory Overview
cfunc.weof C Function Pick/BASIC 'weof' functionality from C.
cfunc.readt C Function Pick/BASIC 'readt' functionality from C.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.