🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Excruciatingly simple programming question...

#4627
From: Charlie Gibbs
Date: Sun, 29 Jul 1990 20:28
27 lines
1240 bytes
In article <4106@dogie.macc.wisc.edu> gilmore@vms.macc.wisc.edu
(Neil Gilmore) writes:

>What I'm using:
>
>Manx 3.6b? (question on the 'b', not the 3.6)

     Glad to see you got it going.  The Manx 16-bit int default can
bite you if you're not careful.  An alternative solution would be
to change the lines

   Write(dos_fh,"Please type an input line, then press RETURN\n", 45);
   howmany = Read(dos_fh,userinput,255);

to

   Write(dos_fh,"Please type an input line, then press RETURN\n", 45L);
   howmany = Read(dos_fh,userinput,255L);

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

Charlie_Gibbs@mindlink.UUCP
If your nose runs and your feet smell, you're built upside-down.
Technical Details
Message-ID: <2667@mindlink.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!van-bc!rsoft!mindlink!a218

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!decwrl!ucbvax!van-bc!rsoft!mindlink!a218
From: a218@mindlink.UUCP (Charlie Gibbs)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Excruciatingly simple programming question...
Message-ID: <2667@mindlink.UUCP>
Date: 29 Jul 90 20:28:02 GMT
Organization: MIND LINK! - British Columbia, Canada
Lines: 27