pskc_valueformat2str(3)

πŸ’… pskc_valueformat2str(3) β€” the libpskc glow-up

okay bestie, so this one lives in the libpskc manual, and it's genuinely one of the easiest little functions you'll ever meet. no cap. it's a tiny translator: you hand it an enum, it hands you back a string. that's the whole vibe. πŸŽ€


✨ NAME ✨

pskc_valueformat2str β€” the API function that turns your pskc_valueformat into a readable string πŸ¦‹


🌸 SYNOPSIS 🌸

#include <pskc.h>

const char * pskc_valueformat2str(pskc_valueformat valueformat);

like, look at it. one include, one function, zero drama. main character energy fr fr πŸ’œ


🫢 ARGUMENTS 🫢

  • pskc_valueformat valueformat β€” an pskc_valueformat enumeration type. that's it. that's the argument. you pass in the enum value and she does her thing ✨ (yes, the original says "an", we're keeping it, it's iconic)

πŸ’– DESCRIPTION πŸ’–

Convert pskc_valueformat to a string. periodt.

so like, for example:

pskc_valueformat2str(PSKC_VALUEFORMAT_DECIMAL)

will return "DECIMAL". slay. that's literally the whole trick πŸ’…

⚠️ okay this part matters, bestie: the returned string must not be deallocated. do NOT free() it. do NOT go cleaning up after it. it's not yours, it's borrowed. hands off πŸ™ˆ

⭐ RETURNS ⭐

String corresponding to pskc_valueformat. cute little string, matching your enum. that's the return value, no surprises, no plot twists 🌈


😭 REPORTING BUGS 😭

found something cursed? report bugs to <oath-toolkit-help@nongnu.org>. πŸ“


Copyright Β© 2009-2026 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. (translation: go off, share it, just keep the credit, king behavior πŸ‘‘)


and that's the page!! 🧚 sending you off with love β€” this was libpskc, version 2.6.15, and the manual page was pskc_valueformat2str(3). go forth and format those values πŸ’–βœ¨

πŸ“¦ where this page comes from