pskc_build_xml(3)
β¨ pskc_build_xml(3) β¨
okay so bestie, we're in the libpskc cinematic universe today and this little function is genuinely the glow-up moment for your container π
π NAME π
pskc_build_xml β the API function that turns your container into XML, no cap β¨
π¦ SYNOPSIS π¦
#include <pskc.h>
int pskc_build_xml(pskc_t * container, char ** out, size_t * len);
πΈ ARGUMENTS πΈ
pskc_t * containerβ apskc_thandle, and likeβ¦ you get one of those frompskc_init(). that's the whole vibe π«Άchar ** outβ pointer to the output variable that's gonna hold the newly allocated string. she's fresh, she's new, she's malloc'd πsize_t * lenβ output variable holding the length of*out. so you know exactly how long your string is, iykyk π
π§ DESCRIPTION π§
This function builds a XML file from the data chillin' in container. iconic behaviour honestly π
And as a little convenience β because she's thoughtful like that β it also converts the XML into a string placed in the newly allocated *out of length len, using pskc_output() with PSKC_OUTPUT_XML. two things at once, main character energy fr fr π₯
β RETURNS β
On success, PSKC_OK (zero) is returned. that's the slay π
On memory allocation errors, PSKC_MALLOC_ERROR is returned. sad times, but at least you know π
π REPORTING BUGS π
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/ π
ngl, if something's broken, tell the maintainers! they wanna know, that's the whole point π«Ά
π 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. π
that's the whole page bestie, no notes π
mwah π β this was libpskc version 2.6.15, dated pskc_build_xml(3), and yes the footer said libpskc twice because she contains multitudes π
π¦ 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