[xml] TestC14N patch (standard C output)
- From: Justin Fletcher <justin fletcher ntlworld com>
- To: xml gnome org
- Subject: [xml] TestC14N patch (standard C output)
- Date: Sat, 09 Mar 2002 16:05:27 GMT
Hiya,
Tiny patch for testC14N to use standard C fwrite, rather than write :
--8<--------
*** Original.c.testC14N Mon Mar 4 17:09:34 2002
--- RISCOS.c.testC14N Sat Mar 9 16:01:00 2002
***************
*** 101,107 ****
with_comments, &result);
if(ret >= 0) {
if(result != NULL) {
! write(1, result, ret);
xmlFree(result);
}
} else {
--- 101,107 ----
with_comments, &result);
if(ret >= 0) {
if(result != NULL) {
! fwrite(result, 1, ret, stderr); /* JRF: was write(1, result, ret); */
xmlFree(result);
}
} else {
--8<--------
Other than that, nothing else in the file uses read/write.
--
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
Trying to send you messages, but choking on goodbye.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]