cfunc.rewind C Function/C Functions

cfunc.rewind

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

type Pick/BASIC statement

_CP_REWIND_ELSE rewind else * return -1
_CP_REWIND_ONERR rewind else * return -1

This function returns -1 if an error occurs. The error code is contained in _CP_errno. PE_TAPE indicates a tape error.
Syntax int _CP_rewind(int type)
Options
Example
/* The following example rewinds the tape. */

_CP_rewind(_CP_REWIND_ELSE);
Purpose
Related cfunc.introduction
cfunc.weof