🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4643

Re: Excruciatingly simple programming question...

#4643
From: Thomson
Date: Wed, 01 Aug 1990 00:10
23 lines
1324 bytes
This is really a 'C' question more than an amiga question, but I guess that's
how this thread started out anyway...

In article <2667@mindlink.UUCP> a218@mindlink.UUCP (Charlie Gibbs) writes:
>
>i.e. explicitly cast those length constants to long, which is what
>Write() and Read() are expecting.  In fact, it's probably a good
>idea to do it anyway.
>
>     (singing) Portability forever...  :-)

If you've included <stdio.h>, then the compiler should know what kind of
arguments Write() and Read() are expecting, and it should automatically
convert the int to a long int, right?  (I'm assuming that there would be a 
function prototype in the include file.)  Is this a weakness of the Manx
compiler?  By the way, what's the story with Lattice - would it detect/
correct this kind of error?  

Duncan Thomson


--
(Please excuse the typos and garbage caused by line noise.)
Technical Details
Message-ID: <115522@linus.mitre.org>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!linus!mbunix!duncant
References: <2667@mindlink.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!snorkelwacker!spdcc!merk!alliant!linus!linus!mbunix!duncant
From: duncant@mbunix.mitre.org (Thomson)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Excruciatingly simple programming question...
Message-ID: <115522@linus.mitre.org>
Date: 1 Aug 90 00:10:44 GMT
References: <2667@mindlink.UUCP>
Sender: usenet@linus.mitre.org
Lines: 23