shishi_parse_name(3)
π shishi_parse_name(3) π
okay bestie, welcome to shishi_parse_name, straight out of the shishi manual π
this is the lil function that takes one big string and goes snip snip into a principal and a realm. it's giving scissors. it's giving organized. we love her.
β¨ NAME β¨
shishi_parse_name β an API function π
β¨ SYNOPSIS β¨
#include <shishi.h>
int shishi_parse_name(Shishi * handle, const char * name, char **
principal, char ** realm);
β¨ ARGUMENTS β¨
Shishi * handleβ the Shishi library handle, and you get it fromshishi_init(). no handle, no party πconst char * nameβ the input principal name string you're handing over, likeimap/mail.gnu.orgGNU.ORG for example πΈchar ** principalβ a newly allocated output string, and inside it is the principal name. fresh out the allocator, no cap β¨char ** realmβ another newly allocated output string, this one holding the realm name π¦
β¨ DESCRIPTION β¨
so the whole vibe here is: you give her a principal name β like simonJOSEFSSON.ORG β and she splits it into two newly allocated strings. the principal is simon and the realm is JOSEFSSON.ORG. iconic behavior honestly π
and if there's no realm part in name at all? then realm gets set to NULL. she's not gonna invent one, she's just gonna say "nope, not here" π
β¨ RETURN VALUE β¨
Returns SHISHI_INVALID_PRINCIPAL_NAME if name is NULL or ends with the escape character " successful.
okay so real talk bestie, the source text right here looks like the formatter chewed it up mid-sentence π i'm not gonna sit here and make up the rest of that sentence for you β that would be lying to your face and i love you too much. everything that's there is there, and the vibes are: badnamein,SHISHI_INVALID_PRINCIPAL_NAMEout π«Ά
β¨ REPORTING BUGS β¨
found a bug? tell the shishi girlies directly, they want to know fr fr π
- Report bugs to
<bug-shishi@gnu.org>. - 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. (yes bestie, keep the receipt π)
β¨ 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, this command:
info shishi
should give you access to the complete manual. go read it, it's lowkey a whole library π
and that's the page!! slay π this was shishi_parse_name(3) from shishi, and this lil manual page is hanging out at version 1.0.3 π mwah, go split some names, 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