With this function it is possible to modify the behaviour of the library. The argument to this function is the bitwise or of flags defined in [INCLUDEDIR/]ftvt.h . Only two flag values are defined so far, namely
FTVT_VERBOSE
|
Be verbose. If not set, no error messages will be printed to |
FTVT_TAGGED
|
If set, |
Query some information about the library and the tape cartridge. It
isn't necessary to use this function to manipulate the volume table, but
it might provide useful information. The return value is a pointer to a
static storage area which's contents is valid until the next call to
ftvt_get_ctrl()
. struct ftvt_ctrl
is defined
in
[INCLUDEDIR/]ftvt.h
like follows:
typedef struct ftvt_ctrl { const char *version; unsigned long flags; int fmt_code; int first_seg; int last_seg; int max_volumes; const char *errstr; const char *drivetype; } ftvt_ctrl;
Its components have the following meaning:
const char *version
|
A string identifying the library version, e.g.
` |
unsigned long flags
|
The flags specified with |
int fmt_code
| |
int first_seg
| |
int last_seg
|
The so called format code identifier of the floppy tape cartridge,
the first data segment and the last data segment. These values are
invalid until |
const char *errstr
|
A pointer to the error string which would have been printed in case the
flag |
![]() |
Use these buttons to jump to the top menu |