Subject: Re: Apple ][ Programming Question.... Path: lobby!newstf02.news.aol.com!portc02.blue.aol.com!howland.erols.net!blackbush.xlink.net!unlisys!news.snafu.de!zrz.TU-Berlin.DE!not-for-mail From: Wulf Hofbauer Newsgroups: comp.sys.apple2.programmer Date: Mon, 26 Jul 1999 23:27:27 -0400 Organization: Technical University Berlin, Germany Lines: 26 Message-ID: <379D271F.9AF47035@echo.chem.tu-berlin.de> References: <7n61md$4dla$1@newssvr04-int.news.prodigy.com> <37971219.1FE8EC5@texas.net> <379A8A67.44E90CFF@echo.chem.tu-berlin.de> <379A57D4.385359DC@texas.net> <379B38F7.C66135E3@echo.chem.tu-berlin.de> <379BABB6.CCC32267@texas.net> NNTP-Posting-Host: p-164-139.zrz.tu-berlin.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.6 [en] (X11; I; Linux 2.2.10 ppc) X-Accept-Language: de-DE, en phoenyx wrote: > In Aztec the path variable is found with the getenv call. How is this > done in HyperC. I know about the calls which read the command > line and getting the path from the command line but I've not seen > anything similiar to the getenv function. > I know these things could be coded for the system but you would > need a common place to store them in memory. It's just nicer > if the system supports them already. Don't get me wrong, I like > HyperC, even the version with it's own OS. I would like to get the > details for how that OS stores directories and does disk reads. I don't remember the exact memory locations off my head - take a look at the library (headers & symbol definitions in sysvars.o or something like that). Most system variables are stored on page 3; there are also several string buffers in the $2xx-$3xx range for the shell path, command search path, etc. Yep, there's no getenv() & friends. The C library maps I/O stuff to standard ProDOS calls (for files on block devices), but implements its own routines for character devices like the console (as ProDOS doesn't have a notion of these). The file descriptors for character devices take different values than those for ProDOS files, and the filenames are also disjunct, so it's easy to keep them apart - in fact, you can print a file by just copying it to the printer file (usually /1). - Wulf