www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/31/22:42:07

Date: Sun, 31 Jan 1999 22:42:03 -0500
Message-Id: <199902010342.WAA12938@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <7937gc$k81@bgtnsc01.worldnet.att.net>
(scotteubank AT worldnet DOT att DOT net)
Subject: Re: Whats Wrong with this code PLEASE HELP!!
References: <7937gc$k81 AT bgtnsc01 DOT worldnet DOT att DOT net>
Reply-To: djgpp AT delorie DOT com

> in function main:
> ../../../djgpp/projects/rndtest.c(13) Error: void not ignored as it ought to
> be

>    rndnum = srand(seed);

srand() does NOT return a value.  rand() does.  Please read the docs
for these functions.

- Raw text -


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