🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #1578

Calling gemdos() in Lattice C.

#1578
From: Greg Schaffer
Date: Thu, 21 Aug 1986 19:01
14 lines
1535 bytes
I am trying to write a program which will create a directory(folder), if it does
not already exist.  I've tried to use   Fattrib (filename, 0, 0)  to tell
me what type of file it is (or -33 if not found),  but it returns -33
whether the folder exists or not.  In looking more closely at the Lattice C
manual, I find that all the arguments to gemdos() are integers (32 bits),
and that all char & short function arguments are expanded to int.
But according to ST INTERNALS some of the gemdos args are supposed to be
words (16 bits).  Has anyone figured out how the gemdos() [in Lattice]
sets up its arguments for Gem?  Help!

-----------------------------------------------------------------------------
gsschaffer%watdaisy@waterloo.csnet                        Greg Schaffer
gsschaffer%watdaisy@waterloo.csnet@csnet-relay.arpa       CS Dept. U. Waterloo
{decvax|ihnp4|allegra|utzoo}!watmath!watdaisy!gsschaffer  Waterloo,ONT N2L 3G1
Technical Details
Message-ID: <7859@watdaisy.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!watmath!watnot!watdaisy!gsschaffer

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site watdaisy.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!watnot!watdaisy!gsschaffer
From: gsschaffer@watdaisy.UUCP (Greg Schaffer)
Newsgroups: net.micro.atari16
Subject: Calling gemdos() in Lattice C.
Message-ID: <7859@watdaisy.UUCP>
Date: Thu, 21-Aug-86 15:01:06 EDT
Article-I.D.: watdaisy.7859
Posted: Thu Aug 21 15:01:06 1986
Date-Received: Fri, 22-Aug-86 05:15:30 EDT
Reply-To: gsschaffer@watdaisy.UUCP (Greg Schaffer)
Organization: Computer Science Dept., University of Waterloo
Lines: 14