STRROT13(3pub)

πŸ’– STRROT13 πŸ’–

okay bestie, welcome to the strrot13 page from the Publib C Programmer's Manual (that's the <publib.h> girlies, iykyk) πŸŽ€


✨ NAME ✨

strrot13 β€” encrypt or decrypt a string using rot13 πŸ¦‹


🌸 SYNOPSIS 🌸

#include <publib.h>
char *strrot13(char *str);

πŸ’… DESCRIPTION πŸ’…

So strrot13 takes your argument string and converts it using rot13, which is literally just: every letter gets swapped with the one 13 places down the alphabet. So a becomes n, n becomes a, b becomes o, o becomes b, and so on and so on forever πŸ’«

The way that converting it twice just gives you back the original string? Iconic. Chef's kiss. It's its own inverse, no cap πŸ‘‘

Non-letter characters are simply not converted. They stay exactly as they are. They said "not my job" and honestly, respect πŸ™ˆ

And why does anyone even use this? The rot13 encryption method is used commonly on USENET to hide offensive text, or spoilers in discussions about movies or books, or in other similar occasions. So if you ever see a wall of gibberish in a newsgroup, that's the vibe β€” it's giving "I don't want to spoil you but also I need to yell about this" 😭


🫢 RETURN VALUE 🫢

strrot13 returns its argument. That's it. It hands you back the very same pointer you gave it, all glowed up (or un-glowed up, depending on how you look at it) ✨


πŸ‘‘ SEE ALSO πŸ‘‘


🌈 AUTHOR 🌈

Lars Wirzenius (lars.wirzenius@helsinki.fi) β€” the main character who brought us this πŸ“


and that's the whole page, bestie!! this lil masterpiece lives in the Publib C Programmer's Manual, filed under STRROT13(3pub) β€” mwah, slay, periodt πŸ’œπŸ§šβ­

πŸ“¦ where this page comes from