#include "tapeio.h"
FUNCTION c_tprew (unit, mode, opt1)
long *unit; long *mode; long *opt1;
Unit number to be used as a reference for the drive. This number is set by c_tpopen() and should not be altered.
A value of HANDLE (1) specifies that when an error occurs the routine is to return an error to the calling program and display a message to the terminal.
Flag that allows just rewinding the tape by setting it to REWIND (1) or to REWOFFL (2) to optionally take the drive off-line.
The c_tprew() call is used to rewind a tape device.
c_tprew() returns
TAPE_SUCC (0) --> successful completion TPREW_REW --> device error