From: DavMac AT iname DOT com (Davin McCall) Newsgroups: comp.os.msdos.djgpp Subject: Re: srand() or time() Date: Thu, 27 May 1999 02:37:43 GMT Organization: Monash Uni Lines: 17 Distribution: world Message-ID: <374caf92.904292@newsserver.cc.monash.edu.au> References: NNTP-Posting-Host: damcc5.halls.monash.edu.au X-Trace: towncrier.cc.monash.edu.au 927772633 20459 130.194.198.138 (27 May 1999 02:37:13 GMT) X-Complaints-To: abuse AT monash DOT edu DOT au NNTP-Posting-Date: 27 May 1999 02:37:13 GMT X-Newsreader: Forte Free Agent 1.1/32.230 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Wed, 26 May 1999 13:10:19 +0300 (IDT), Eli Zaretskii wrote: >`time' cannot be as simple as you seem to think. For starters, it needs >to support the different time zones, so it needs at least to look at the >environment variable TZ. DJGPP's version does much more than that, and >uses a disk-based database for all the different timezone rules. And, if that database cannot be found, an error will be generated by a call to open one of the files in it. I haven't checked, but if the time function used the standard fopen() etc or variants then errno may be changed. Makes sense. Davin. __________________________________________________________ *** davmac - sharkin'!! davmac AT iname DOT com *** my programming page: http://yoyo.cc.monash.edu.au/~davmac/