| delorie.com/archives/browse.cgi | search |
| Date: | Tue, 24 Dec 1996 09:36:09 -0500 |
| Message-Id: | <199612241436.JAA09011@delorie.com> |
| From: | DJ Delorie <dj AT delorie DOT com> |
| To: | kagel AT dg1 DOT bloomberg DOT com |
| CC: | libolt AT primenet DOT com, djgpp AT delorie DOT com |
| In-reply-to: | <9612241402.AA24727@quasar.bloomberg.com > |
| (kagel AT quasar DOT bloomberg DOT com) | |
| Subject: | Re: modem Questions |
> modem = fopen( "COM1", "rw" ); /* Assuming your modem is at COM1: */ There is no "rw" mode. Try "r+" instead. Also, you should disable buffering, and you must do an fseek() or fflush() when switching from read to write or write to read.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |