Re: [xml] [offtopic] evaluation order of logical operators
- From: Volker Grabsch <vog notjusthosting com>
- To: xml gnome org
- Subject: Re: [xml] [offtopic] evaluation order of logical operators
- Date: Thu, 17 Jul 2008 21:23:38 +0200
On Thu, Jul 17, 2008 at 12:28:04PM +0200, Andreas Stricker wrote:
Volker Grabsch wrote:
for(int i=0, e=xpo->nodesetval->nodeNr; i<e; ++i) {
xmlChar* p_val = xmlGetProp(xpo->nodesetval->nodeTab[i], "id");
if(p_val && 0==strcmp("4", p_val)) {
Please note that in C the order of execution of
p_val
and
0==strcmp("4", p_val)
is not specified!
For a short time you put me off my stride. I do this all the time.
Then I found the following statement in ISO C99 [1]:
Sorry, I confused this with the order of execution of
function parameters, whose order is not guaranteed.
Sorry for the confusion.
Greets,
Volker
--
Volker Grabsch
---<<(())>>---
Administrator
NotJustHosting GbR
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]