1pskc_parse_from_memory(3) libpskc pskc_parse_from_memory(3)
2
3
4
6 pskc_parse_from_memory - API function
7
9 #include <pskc.h>
10
11 int pskc_parse_from_memory(pskc_t * container, size_t len, const char *
12 buffer);
13
15 pskc_t * container
16 a pskc_t handle, from pskc_init().
17
18 size_t len length of buffer.
19
20 const char * buffer
21 XML data to parse.
22
24 This function will parse the XML data in buffer of len size into con‐
25 tainer. If PSKC_PARSE_ERROR is returned, parsing of some elements have
26 failed but the container is still valid and contain partially parsed
27 information. In this situation, you may continue but raise a warning.
28
30 On success, PSKC_OK (zero) is returned, on memory allocation errors
31 PSKC_MALLOC_ERROR is returned, on XML library errors PSKC_XML_ERROR is
32 returned, on PSKC parse errors PSKC_PARSE_ERROR is returned.
33
35 Report bugs to <oath-toolkit-help@nongnu.org>. libpskc home page:
36 http://www.gnu.org/software/libpskc/ General help using GNU software:
37 http://www.gnu.org/gethelp/
38
40 Copyright © 2012-2020 Simon Josefsson.
41 Copying and distribution of this file, with or without modification,
42 are permitted in any medium without royalty provided the copyright
43 notice and this notice are preserved.
44
45
46
47libpskc 2.6.6 pskc_parse_from_memory(3)