delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/10/20/04:45:10

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: reading from com1: => driving me nuts
Date: 20 Oct 2005 08:42:08 GMT
Lines: 19
Message-ID: <3rp3j0FkmjjgU3@news.dfncis.de>
References: <1h4c4cp.1b942cr1g5grtnN%muellernick AT gmx DOT de> <55g0l1loonul6cqq14k5svi8lr72g67es1 AT 4ax DOT com> <1h4h4t6.bxmfkh1caen33N%muellernick AT gmx DOT de>
X-Trace: news.dfncis.de bTTBpFhNucOZlf8kiQrJkgIpUSbLNZ0o8VISW5gjq5Dj95rTjsngeODI5W
X-Orig-Path: not-for-mail
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Nick Müller <muellernick AT gmx DOT de> wrote:
> AndrewC <andspamtrap AT exemail DOT doty DOT com DOT au> wrote:

> > >What am I doing wrong?
> > Assuming that you are a embedded C programmer didn't it strike you are
> > strange that you can't read or write to the uart registers?

> Not at all! If I have a <stdio.h> I prefer using it.

Preferences have nothing to do with it.  <stdio.h> support is simply
*way* too crude for what you're trying to do.  Remember: this is DOS, not
UNIX you're programming for, i.e. not everything that could usefully be
a file actually is.  COM1: is made available as a file, but it's supported
only on a *very* basic level, by DOS.  You're way beyond the point where
it makes sense to try and rely on DOS to get things done for you.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019