Another explanation:
&& and || are logical operators (AND and OR respectively), and both operands are interpreted as being binary.
In your code, f() result is FALSE because it returns zero and g() is TRUE because it returns 4 (C interprets non-zero results as a logical TRUE). So, a AND...
Read after write (and also after read) is the error check I'm doing actually, but it's veeeery slooooow.
All I need is a hardware (done by LAN card) or software (done by protocol) error correction.
Are there any way to activate them from my program?
Using TCP/IP as transport protocol might...
I'm using standard file stream functions (fopen, fwrite, fread...) and the LAN protocol that the user (or hardware vendor) decides. I've not influence in that decission.
Hi.
I wrote a accounting program for use in LANs and I note that, in certains LANs (specially with cheap, old or failing LAN cards), there are data loss or errors with small data packets.
When user replace LAN cards all works fine again.
what kind of error can cause that a program fail with a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.