J
James Kuyper
I this case it would be an "extension" of the || operator.
The "extension" that would only be effective, when the
program was compiled with optimizing (option -O).
Here, you express unjustified certainty about the location of the
problem, even though you later admit that there are other possibilities.
....
There is NO file stdio.h at the place searched with "".
That's good to know - but it's not a good reason for not fixing the
problematic code. The right response would have been "thanks for
pointing that out", rather than complaining about it being irrelevant to
the problem at hand. It probably is - but it's still a good idea to get
in the habit of using the correct form. I'm surprised, given the
extensive programming experience you allude to farther down, that you
have not yet already acquired that habit.
I am aware of this possibility.
You sure don't talk as if you were. See farther above, where you just
summarily dismiss the possibility that anything other than the
implementation of || could be relevant.
....
This is possible but improbable, since this is not the
first program I wrote.
I agree that it's improbable. However, given that it's trivial to rule
out that possibility, it's rather odd that you didn't bother to do so,
and even more odd that you complain so bitterly against the suggestion
that you should.
You should fix up the char signedness problem, the use of "" rather than
<> in the #include, and if you're compiling for C90, return a valid
value from main(). Compile with whichever options lcc requires for
maximum conformance with whichever version of the C standard you prefer.
If the problem still occurs, only then will you have collected enough
evidence to justify the certainty you already feel about the irrelevance
of all of those other issues. They probably are irrelevant, but it's
inexcusable to avoid doing the trivial things that you need to do to
convert "probably" into "certainly".
It looks like BartC has already done at least part of this work for you;
but you should have done it yourself.