cfunc.weof C Function/C Functions

cfunc.weof

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

type Pick/BASIC statement

_CP_WEOF_ELSE weof else return -1
_CP_WEOF_ONERR weof onerr return -1

This function returns -1 if an error occurs. The error code usually returned in system(0) is contained in _CP_errno. PE_TAPE indicates a tape error.
Syntax int _CP_weof(int type)
Options
Example
The following example writes an eof on the tape.

_CP_weof(_CP_WEOF_ELSE);
Purpose
Related cfunc.introduction
cfunc.writet
cfunc.system
cfunc.readt
cfunc.rewind