pskc_parse_from_memory(3)

okay so bestie, welcome to pskc_parse_from_memory(3) from libpskc β€” it’s giving β€œparse XML straight out of memory” energy, and yes, this page is the whole manual-page main character. πŸ¦‹βœ¨

🌸 NAME 🌸

pskc_parse_from_memory β€” API function. That’s literally the name, bestie: the API function that does the memory-parse thing. πŸ’…

✨ SYNOPSIS ✨

#include <pskc.h>

int pskc_parse_from_memory(pskc_t * container, size_t len, const char *
       buffer);

πŸŽ€ ARGUMENTS πŸŽ€

  • pskc_t * container β€” a pskc_t handle, from pskc_init(). 🫢
  • size_t len β€” length of buffer. πŸ“
  • const char * buffer β€” XML data to parse. 🧚

πŸ’– DESCRIPTION πŸ’–

This function will parse the XML data in buffer of len size into container. No cap, that’s the whole vibe. 🌈

⚠️ real talk: if PSKC_PARSE_ERROR is returned, parsing of some elements have failed but the container is still valid and contain partially parsed information. In this situation, you may continue but raise a warning. πŸ’…

⭐ RETURNS ⭐

  • On success, PSKC_OK (zero) is returned. πŸ₯³
  • On memory allocation errors, PSKC_MALLOC_ERROR is returned. 😭
  • On XML library errors, PSKC_XML_ERROR is returned. πŸ’€
  • On PSKC parse errors, PSKC_PARSE_ERROR is returned. πŸ™ˆ

πŸ› 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/

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. periodt. πŸ’š


πŸ’– footer sign-off: this is the pskc_parse_from_memory(3) page from libpskc version 2.6.15 β€” source/version accounted for, and the date slot is empty in the original footer so we’re not inventing one, iykyk. Mwah! πŸ’–

πŸ“¦ where this page comes from