STRTAPE(3)
π NAME π
okay bestie, welcome to the STRTAPE(3) page from the library functions manual π this one is iconic for exactly one job: strtape converts a string to a tape device pathname. thatβs the name, thatβs the game β¨
πΈ SYNOPSIS πΈ
char* strtape(char* s, char** e)
π¦ DESCRIPTION π¦
so strtape takes the generic tape device specification sitting inside the nul-terminated string s and converts it into a local tape device pathname. it gives you back a pointer to that device pathname π«Ά
if e is not 0, then *e gets set to point at the first unrecognized character in s. thatβs your little βstarted going off-script hereβ marker π
a tape device specification is made from unit-density-rewind. all three parts are optional π
unitis a unit number in the range[0-7]. the default unit is1.densitymay be one of:lβ for lowmβ for mediumhβ for high the default density ism.
rewindisnfor no-rewind on device close. the default is to rewind on device close.
so you can spell out as much or as little as you want, and the defaults hold it down π₯ periodt.
π SEE ALSO π
go give these besties a look π
π CAVEATS π
big heads-up, bestie: the return value points to a static area that is overwritten on each call. so donβt hold onto it like itβs main character forever β it will change under you π
and thatβs the whole STRTAPE(3) page, bestie π the footer didnβt list a source/version or date, so hereβs your cute sign-off: page STRTAPE(3), no version/date tea, mwah ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- opensuse-leap 16.0: ksh-devel 93vu-bp160.1.33 Β· CPL-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms