Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83 (MC840302); site mcvax.UUCP Path: utzoo!linus!philabs!mcvax!guido From: guido@mcvax.UUCP (Guido van Rossum) Newsgroups: net.micro.pc Subject: Re: Lattice C Library vs. DOS 2.0 Query Message-ID: <5944@mcvax.UUCP> Date: Mon, 27-Aug-84 14:30:07 EDT Article-I.D.: mcvax.5944 Posted: Mon Aug 27 14:30:07 1984 Date-Received: Thu, 30-Aug-84 20:30:17 EDT References: <12489@sri-arpa.UUCP> Reply-To: guido@mcvax.UUCP (Guido van Rossum) Organization: "Stamp Out BASIC" Committee, CWI, Amsterdam Lines: 14 Careful reading of the files stdio.h, ios1.h and main.c, provided with the Lattice distribution (2.04), show that (for DOS 2.0) there is a table, to be declared as struct UFB _ufbs[]; which is indexed with the "unix" file handle (the number returned by fileno(f)). Each entry contains a field named ufbfh which contains the DOS file handle, as I understand it (I never tried this out). So the following would give the DOS file handle of f, declared as FILE *f: _ufbs[fileno(f)].ufbfh You must #include and (and ?) -- Guido van Rossum, "Stamp Out BASIC" Committee, CWI, Amsterdam guido @ mcvax