TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: David George 72240,134 (X)
from: Bob Santy 76417,714
date: 1992-10-05 05:49:07
subject: #16619-#C Communications

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.