After being unable to get a successful compile on a 6.1 machine due to ccsid
issues I used trigraphs for curly braces etc. The compilation then went
I have the following code.
fb = _Rreadf(fp, &buf, sizeof(buf), __NO_LOCK);
if (fb->num_bytes != sizeof(buf))
cout << "That did not work" << endl;
The bizarre thing is that the if statement always evaluates to true (even if
the read finds a record, and even if i change the comparison to "==". That
truly defies the rules of logic).
Other if statements in the same program work as expected. It's created with
I have tried the program successfully on a V5R4 machine.
This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact