[Expat-discuss] XML_ParseBuffer

Carlos Pereira carlos@pehoe.civil.ist.utl.pt
Wed Oct 24 13:19:07 2001


According to the manual, XML_ParseBuffer 
returns 0 for bad formation and "non zero" otherwise.
A quick printf test shows this "non-zero" to be 1 on
my Linux system.

Can I rely on this? a successful XML_ParseBuffer 
always returns 1? or is it more safe to test
always against 0?

I am using the usual #define FALSE/TRUE and
often is more clean to compare ==TRUE than !=FALSE

Thanks!

Carlos