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>ifatfs.his 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 transactionstAskConfirmβstuserio.3β ask user for confirmationstCallCmdβstcall.3β call commandstCallCmdErrnoβstcall.3β error code returned by command (variable)stCallEditorβstcall.3β call editor with default contentsstCatchSigsβstsignal.3β catch signalsstCleanupβstsignal.3β do cleanup (remove temporary files etc.)stConvertPatternβststring.3β convertsh(1)pattern to regex patternstExitβstsignal.3β stop program executionstFindProgramβstcall.3β check if file exists and is executablestGetFromStdinβstuserio.3β read text from standard inputstGetTermWidthβstuserio.3β get current terminal width in columnsstInterruptActionβstsignal.3β address of signal handler forSIGINT(variable)stLogβstuserio.3β print messagestMessageβstuserio.3β buffer for constructing messages (variable)stMktimeβsttime.3β parse time stringstParseArgsβstparseargs.3β parse command line argumentsstProgramNameβstuserio.3β name how program was calledstQuietFlagβstuserio.3β suppress normal messages (no error messages) (variable)stQuitActionβstsignal.3β address of signal handler forSIGQUIT(variable)stRegisterFileβsttmpfiles.3β register filestRmRegisteredFilesβsttmpfiles.3β remove all registered filesstShortUsageβstparseargs.3β print usage stringstShutupFlagβstuserio.3β suppress all messages (variable)stStrEnterβststring.3β enter string to string tablestStrtokβststring.3β tokenize stringstSubstituteStringβststring.3β replace parts of a string by new stringstTermActionβstsignal.3β address of signal handler forSIGTERM(variable)stThisTransactionβsttransaction.3β current transaction (variable)stTmpFileβsttmpfiles.3β return unique name for temporary filestUnRegisterFileβsttmpfiles.3β unregister filestVersionβsttkintro.3β print version identification stringstWriteTimeβ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
- debian bookworm: atfs-dev 1.4pl6-15+b1
- ubuntu jammy: atfs-dev 1.4pl6-15
- ubuntu noble: atfs-dev 1.4pl6-16.1build1
- ubuntu resolute: atfs-dev 1.4pl6-17
- ubuntu stonking: atfs-dev 1.4pl6-17
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms