www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/03/11:14:16

Date: Mon, 3 Jun 1996 18:06:44 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: halibut AT kuhub DOT cc DOT ukans DOT edu
Cc: djgpp AT delorie DOT com
Subject: Re: use of srand with djgpp?
In-Reply-To: <1996Jun3.061709.120699@kuhub.cc.ukans.edu>
Message-Id: <Pine.SUN.3.91.960603180411.22016D-100000@is>
Mime-Version: 1.0

On 3 Jun 1996 halibut AT kuhub DOT cc DOT ukans DOT edu wrote:

> To seed the random number table I always used srand(time(NULL)).
> I have both time.h and stdlib.h included. Djgpp refuses to accept
> this line of code. Is there any other way to do this?

Please post the code that won't compile and the error messages printed by 
gcc.  I tried ``srand (time (0))'' and it worked for me.
 
> Maybe this could be put in the faq?

FAQ is for *frequently* asked questions, not just for *any* questions (or 
else it will be enormously large).  Other questions should be just asked 
here, like you did.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019