gtpc2m7bC/C++ Language Support User's Guide

tape_open-Open a General Tape

This function makes a general tape available to the operational program.

Format

#include   <tpftape.h>
void       tape_open(const char *name, int io);

name
This argument is a pointer to type char, which must be a 3-character string identifying the tape to be opened. This function can only be called for a general tape.

io
Code 1 of these 2 terms as defined in header file tpftape.h INPUT to read the tape, or OUTPUT to write to the tape.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example opens a VPH tape for output and issues a system error with message if the tape is not available for use.

#include <tpftape.h>

  ·
  ·
  ·
tape_open("VPH", OUTPUT);

Related Information

tape_close-Close a General Tape.