AW: AW: AW: [xml] xmlTextWriter
- From: "Mickautsch, Alfred" <alfred mickautsch schuler-ag com>
- To: <xml gnome org>
- Subject: AW: AW: AW: [xml] xmlTextWriter
- Date: Wed, 8 Oct 2003 11:12:53 +0200
-----Ursprüngliche Nachricht-----
Von: Daniel Veillard [mailto:veillard redhat com]
...
We use the TRIO set of *printf reimplementation for platforms where
they are not available. So there should be no portability issues, it's
already dealt with. I'm not sure what your problems are in practice.
The problem is not with platforms where the *printf functions are not available, but with those on which they
exist.
For example see the difference between the ANSI C language C9X draft and the M$ documentation:
C9X:
[#3] The vsnprintf function returns the number of characters
that would have been written had n been sufficiently large,
not counting the terminating null character, or a negative
value if an encoding error occurred. Thus, the null-
terminated output has been completely written if and only if
the returned value is nonnegative and less than n.
M$:
_vsnprintf and _vsnwprintf return the number of characters written, not including the terminating null
character, or a negative value if an output error occurs. For _vsnprintf, if the number of bytes to write
exceeds buffer, then count bytes are written and -1 is returned.
See what I mean? And there exist other variations too.
Servus -- Alfred
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]