#: 16623 S12/OS9/68000 (OSK)
05-Oct-92 05:49:07
Sb: #16619-#C Communications
Fm: Bob Santy 76417,714
To: David George 72240,134 (X)
David:
If the code is EXACTLY as you have entered, the problem may be that the
if (rdy_chars = -1)
is ASSIGNING -1 to the variable. Try
if( rdy_chars == -1 )
That should get by the wiping out of the _gs_rdy() return value at least.
I see that the open() call in main() has the same error as well. Change the =
-1 to == -1. C will do ASSIGNMENT with =. Testing for equality is done with
==.
Bob
There is 1 Reply.
|