C Functions
_CP_weof
.md_CP_weof is equivalent to the weof BASIC statement.
Syntax
int _CP_weof(int type)
Parameter(s)
| Type | BASIC Statement |
|---|---|
| _CP_WEOF_ELSE |
weof else return -1 |
| _CP_WEOF_ONERR |
weof onerr return -1 |
Description
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.
Note: The tape must have already been
attached.
Example(s)
/* Writes an eof on the tape. */ _CP_weof(_CP_WEOF_ELSE);