#include "tapeio.h"
FUNCTION c_tpweof (unit, count, mode)
long *unit; long *count; long *mode;
Unit number to be used as a reference for the drive. This number is set by c_tpopen() and should not be altered.
Number of EOFs to be written.
A value of NO_HANDLE (0) specifies that errors are to be returned to the calling program. 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.
The c_tpweof() call is used to write count EOFs on a tape device.
c_tpweof() returns
TAPE_EOT --> end of tape encountered TAPE_SUCC (0) --> successful completion TPWEOF_WEOF --> device error