| _CP_unlock_all | Index Level | _CP_write |
| Syntax | int _CP_weof(int type) |
| Category | C Interface |
| Type | C Function |
| Description |
equivalent to the FlashBASIC statement: weof
type FlashBASIC 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. |
| Options | |
| See Also | C Functions introduction _CP_writet _CP_system _CP_readt _CP_rewind |
| Example |
The following example writes an eof on the tape.
_CP_weof(_CP_WEOF_ELSE); |
| Warnings | The tape must have already been attached. |
| Compatibility | AP 6.1 |
| _CP_unlock_all | Index Level | _CP_write |