gtpc2m7dC/C++ Language Support User's Guide

tape_write-Write a Record to General Tape

This function writes a record to a general tape.

Format

#include   <tpftape.h>
void       tape_write(const char *name, enum t_lvl level);

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

level
One of 16 possible values representing a valid data level from the enumeration type t_lvl, expressed as Dx, where x represents the hexadecimal number of the level (0-F). This argument identifies the CBRW containing the record to be written to tape.

Normal Return

Void.

Error Return

Not applicable.

Programming Considerations

Examples

The following example opens and writes a copy of the record on level D1 to the VPH tape.

#include <tpftape.h>

  ·
  ·
  ·
tape_open("VPH", OUTPUT); tape_write("VPH", D1); /* Write block on D1 to tape */

Related Information