AW: AW: AW: [xml] xmlTextWriter

-----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 
For example see the difference between the ANSI C language C9X draft and the M$ documentation:
       [#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.

_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]