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β anpskc_valueformatenumeration 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>. π
- libpskc home page: https://oath-toolkit.codeberg.page/
- General help using GNU software: http://www.gnu.org/gethelp/
π COPYRIGHT π
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
- arch rolling: oath-toolkit 2.6.15-1 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms