_CP_weof is equivalent to the weof BASIC statement.
Type |
BASIC Statement |
_CP_WEOF_ELSE |
weof else return -1 |
_CP_WEOF_ONERR |
weof onerr return -1 |
Syntax
int _CP_weof(int type) |
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); |
See Also