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 β€” a pskc_t handle, and like… you get one of those from pskc_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 Β© 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