--- truecrypt/common/xml.c 2018/04/24 16:46:28 1.1.1.4 +++ truecrypt/common/xml.c 2018/04/24 17:08:09 1.1.1.12 @@ -1,9 +1,9 @@ /* - Copyright (c) TrueCrypt Foundation. All rights reserved. + Copyright (c) 2005-2010 TrueCrypt Developers Association. All rights reserved. - Covered by the TrueCrypt License 2.2 the full text of which is contained - in the file License.txt included in TrueCrypt binary and source code - distribution packages. + Governed by the TrueCrypt License 3.0 the full text of which is contained in + the file License.txt included in TrueCrypt binary and source code distribution + packages. */ #include @@ -161,7 +161,7 @@ char *XmlGetNodeText (char *xmlNode, cha } -char *XmlQuoteText (char *textSrc, char *textDst, int textDstMaxSize) +char *XmlQuoteText (const char *textSrc, char *textDst, int textDstMaxSize) { char *textDstLast = textDst + textDstMaxSize - 1; @@ -209,7 +209,13 @@ char *XmlQuoteText (char *textSrc, char int XmlWriteHeader (FILE *file) { - return fputs ("\n", file); + return fputs ("\n", file); +} + + +int XmlWriteHeaderW (FILE *file) +{ + return fputws (L"\n", file); } @@ -217,3 +223,9 @@ int XmlWriteFooter (FILE *file) { return fputs ("\n", file); } + + +int XmlWriteFooterW (FILE *file) +{ + return fputws (L"\n", file); +}