sttk_intro(3)

✨ sttk_intro(3) β€” bestie's guide to the ShapeTools Toolkit Library ✨

okay so sttk_intro is literally the front door to the ShapeTools Toolkit Library, from the ShapeTools Toolkit Library manual, section 3 (library functions, iykyk). pull up a chair, we're doing a tour 🫢


🌸 SYNOPSIS 🌸

#include <config.h>
#include <sttk.h>

char* stVersion (void);

that's the whole vibe up top. the details? below, bestie. πŸ‘‡


πŸ’– DESCRIPTION πŸ’–

The ShapeTools Toolkit library β€” going by sttk in the group chat β€” is a whole set of functions that get used all over the place inside the ShapeTools configuration management toolkit. it's giving shared infrastructure, it's giving "everybody's borrowing your charger". πŸ”Œ

little note from the source: you can skip the #include <config.h> if atfs.h is already included. no cap.

And stVersion? she returns a version identification string for the ShapeTools Toolkit library. that's it, that's the function. iconic. πŸ‘‘


πŸ‘‘ LIST OF FUNCTIONS AND VARIABLES πŸ‘‘

every single one, fr fr, no skips. the middle column is the page where the full tea lives. πŸ’…

  • stAbortThis β€” sttransaction.3 β€” abort transaction
  • stAskConfirm β€” stuserio.3 β€” ask user for confirmation
  • stCallCmd β€” stcall.3 β€” call command
  • stCallCmdErrno β€” stcall.3 β€” error code returned by command (variable)
  • stCallEditor β€” stcall.3 β€” call editor with default contents
  • stCatchSigs β€” stsignal.3 β€” catch signals
  • stCleanup β€” stsignal.3 β€” do cleanup (remove temporary files etc.)
  • stConvertPattern β€” ststring.3 β€” convert sh(1) pattern to regex pattern
  • stExit β€” stsignal.3 β€” stop program execution
  • stFindProgram β€” stcall.3 β€” check if file exists and is executable
  • stGetFromStdin β€” stuserio.3 β€” read text from standard input
  • stGetTermWidth β€” stuserio.3 β€” get current terminal width in columns
  • stInterruptAction β€” stsignal.3 β€” address of signal handler for SIGINT (variable)
  • stLog β€” stuserio.3 β€” print message
  • stMessage β€” stuserio.3 β€” buffer for constructing messages (variable)
  • stMktime β€” sttime.3 β€” parse time string
  • stParseArgs β€” stparseargs.3 β€” parse command line arguments
  • stProgramName β€” stuserio.3 β€” name how program was called
  • stQuietFlag β€” stuserio.3 β€” suppress normal messages (no error messages) (variable)
  • stQuitAction β€” stsignal.3 β€” address of signal handler for SIGQUIT (variable)
  • stRegisterFile β€” sttmpfiles.3 β€” register file
  • stRmRegisteredFiles β€” sttmpfiles.3 β€” remove all registered files
  • stShortUsage β€” stparseargs.3 β€” print usage string
  • stShutupFlag β€” stuserio.3 β€” suppress all messages (variable)
  • stStrEnter β€” ststring.3 β€” enter string to string table
  • stStrtok β€” ststring.3 β€” tokenize string
  • stSubstituteString β€” ststring.3 β€” replace parts of a string by new string
  • stTermAction β€” stsignal.3 β€” address of signal handler for SIGTERM (variable)
  • stThisTransaction β€” sttransaction.3 β€” current transaction (variable)
  • stTmpFile β€” sttmpfiles.3 β€” return unique name for temporary file
  • stUnRegisterFile β€” sttmpfiles.3 β€” unregister file
  • stVersion β€” sttkintro.3 β€” print version identification string
  • stWriteTime β€” sttime.3 β€” generate time string

πŸ¦‹ SEE ALSO πŸ¦‹

  • Andreas Lampen and Axel Mahler (Eds.)
  • ShapeTools, Technical Report No. 92-14, Technische UniversitΓ€t Berlin, May 1992

and that's the whole page, bestie, you ate it πŸ“βœ¨

signing off from the sttk-1.7 era, dated Thu Jun 24 17:43:28 1993 β€” yeah she's vintage, she's a classic, she's serving archive-core and we're obsessed πŸ’œπŸŽ€

πŸ“¦ where this page comes from