firestring_estr_xml_encode3
Encode an estring into another estring for transmission inside xml data
Usage
#include <firestring.h>
-lfirestring
int firestring_estr_xml_encode(struct firestring_estr_t *destination, struct firestring_estr_t *source)
Overview
firestring_estr_xml_encode() encodes the contents of source by escaping characters that might trigger XML processing into destination, provided that there is room in destination. The minimum required space in destination is the length of source * 6.
Return value
0 if the string was encoded successfully; 1 if there was insufficient space in destination for the encoding to occur.
Releases
Unchanged in 6 releases since Debian 3.1 (Sarge).