OS Manuals

strtape(3ast)

strtape - convert string to tape device pathname

STRTAPE(3ast) STRTAPE(3ast)

strtape - convert string to tape device pathname

char* strtape(const char* s, char** e)

strtape converts the generic tape device specification in the null-terminated string s to a local tape device pathname. A pointer to the device pathname is returned. If e not 0 then *e is set to point to the first unrecognized character in s.

A tape device specification is composed of unit-density-rewind. All are optional. unit is a unit number in the range [0-7]. The default unit is 1. Density may be one of:

for low;
for medium, and
for high.

The default is m. rewind is n for no-rewind on device close. The default is to rewind on device close.

pax(1), tar(1)

The return value points to a static area that is overwritten on each call.

ksh 1.0.10-r37 · os · ingested 2026-10-11