Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!rutgers!ames!ucbcad!ucbvax!hplabs!hpcea!hpsrla!hpsrlc!darrylo From: darrylo@hpsrlc.HP.COM (Darryl Okahata) Newsgroups: net.sources.games Subject: Re: Bug in Trek73 Message-ID: <3700001@hpsrlc.HP.COM> Date: Mon, 15-Dec-86 18:55:34 EST Article-I.D.: hpsrlc.3700001 Posted: Mon Dec 15 18:55:34 1986 Date-Received: Wed, 17-Dec-86 07:11:56 EST References: <1252@masscomp.UUCP> Organization: Network Measurements Div - Santa Rosa, CA Lines: 18 For those who are trying to convert Trek73 to run on an MSDOS machine, you'll have to change: time(0); to time(NULL); if you're using the large memory model. In the first case, an integer is passed to time(); in the second, a LONG is passed to time(). A NULL, in the large memory model, is defined as a LONG, and not as an integer. If you pass zero as an integer to time() (in the large memory model), time() will think that you've passed a pointer to it and will happily thrash some random location in memory. All this was found with the Microsoft C compiler, version 4.00, BTW.