_CP_weof is equivalent to the weof BASIC statement.
int _CP_weof(int type)
Type | 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.
/* Writes an eof on the tape. */ _CP_weof(_CP_WEOF_ELSE);
C functions overview, _CP_readt, _CP_rewind, _CP_system, _CP_writet