STRTAPE(3)

πŸ“¦ version 93vu, in opensuse-leap 16.0

πŸŽ€ 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 πŸ’…

  • unit is a unit number in the range [0-7]. the default unit is 1.
  • density may be one of:
    • l β€” for low
    • m β€” for medium
    • h β€” for high the default density is m.
  • rewind is n for 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