Article View: dnet.atari
Article #318handling serial io in turbo-c
From: Mustafa Soysal
Date: Tue, 18 Jun 1991 22:37
Date: Tue, 18 Jun 1991 22:37
16 lines
956 bytes
956 bytes
Hi, I have a problem accesing the serial port with the fgets and fscanf functions. If I use "aux:" for filename and "r+" option for permissions, I read garbled characters into the buffer, and sometimes it sits there and probably waits for input from serial port, while the data is pouring in. If I use the predefined stream stdaux, I get a bus error with one of the tries to get something with fgets. Has anyone done any work with the serial work using Turbo-C ? Please help Mustafa
Technical Details
Message-ID:
<00000001.msoysal@mcimail.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!samsung!caen!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 12bdcf,ba287b079fa9739d,start X-Google-Attributes: gid12bdcf,public X-Google-ArrivalTime: 1991-06-18 22:38:01 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!spool.mu.edu!samsung!caen!news From: msoysal@mcimail.com (Mustafa Soysal) Newsgroups: dnet.atari Subject: handling serial io in turbo-c Message-ID: <00000001.msoysal@mcimail.com> Date: 18 Jun 91 22:37:00 GMT Organization: AA-MI Lines: 16