.\" (C) 2002 Ian Gulliver .TH firestring_estr_xml_encode 3 2002-09-21 .SH NAME firestring_estr_xml_encode \- encode an estring into another estring for transmission inside XML data .SH SYNOPSIS .B #include .br .B -lfirestring .LP .BI "int firestring_estr_xml_encode(struct firestring_estr_t *" "destination" ", struct firestring_estr_t *" "source" ")" .SH DESCRIPTION firestring_estr_xml_encode() encodes the contents of .I source by escaping characters that might trigger XML processing into .IR destination , provided that there is room in .IR destination . The minimum required space in destination is the length of source * 6. .SH RETURN VALUE 0 if the string was encoded successfully; 1 if there was insufficient space in .I destination for the encoding to occur. .SH AUTHOR Ian Gulliver .SH SEE ALSO .BR libfirestring (3)