shishi_principal_default(3)
π shishi_principal_default(3) π
okay bestie, so this is a page from the shishi manual β specifically the shishi_principal_default(3) one, aka the "who even am I" function. it's giving very β¨identity crisis but make it APIβ¨. let's get into it π«Ά
πΈ NAME πΈ
shishi_principal_default β an API function, and honestly? a lil icon. it tells you your default principal name. that's it, that's the whole gig π
π¦ SYNOPSIS π¦
#include <shishi.h>
const char * shishi_principal_default(Shishi * handle);
look at her. one arg. returns a const char *. no drama, no cap. π
π ARGUMENTS π
Shishi * handleβ the Shishi library handle, and you gotta make it withshishi_init(). no handle, no vibes. periodt.
β¨ DESCRIPTION β¨
so here's the tea π β the default principal name is the name that lives in the environment variable USER, or LOGNAME on some systems (iykyk, different systems do different things, it's not that deep).
BUT π¨ you can override the whole thing by setting the environment variable SHISHI_USER. yes bestie, you have main character energy and you get to pick your own name. the environment variable said "not me being customizable" π
π RETURN VALUE π
it returns the default principal name that the library uses.
β οΈ IMPORTANT, and I mean this with my whole chest β it is NOT a copy of it. so do not modify it and do not deallocate it. that's not your string, bestie, that's the library's string. hands off π
π REPORTING BUGS π
found a bug? first of all, oof. second of all, report it to <bug-shishi@gnu.org>. they wanna hear about it fr fr.
- GNU Shishi home page: http://www.gnu.org/software/shishi/
- General help using GNU software: http://www.gnu.org/gethelp/
π COPYRIGHT π
Copyright Β© 2002-2022 Simon Josefsson.
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. slay, honestly. that's a generous license and we love to see it π
β SEE ALSO β
the full documentation for shishi is maintained as a Texinfo manual. if the info and shishi programs are properly installed at your site, then this command:
info shishi
should give you access to the complete manual. go read it, it's lowkey a whole vibe πβ¨
and that's the page!! version 1.0.3 of shishi, mwah π go forth and know thy principal name, bestie π§ββοΈπ
π¦ where this page comes from
- debian bookworm: shishi-doc 1.0.3-1 Β· GPL-3.0-or-later
- debian trixie: shishi-doc 1.0.3-5 Β· GPL-3.0-or-later
- nixos 26.05: shishi 1.0.3
- nixpkgs unstable: shishi 1.0.3
- ubuntu noble: shishi-doc 1.0.3-2.1build2 Β· GPL-3.0-or-later
- ubuntu questing: shishi-doc 1.0.3-5
- ubuntu resolute: shishi-doc 1.0.3-5build1 Β· GPL-3.0-or-later
- ubuntu stonking: shishi-doc 1.0.3-7 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms