delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/22/11:34:13

Date: Thu, 22 Jan 1998 18:33:55 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Nate Eldredge <eldredge AT ap DOT net>
cc: Van Mo Dang <van DOT mo DOT dang AT utc DOT fr>, djgpp AT delorie DOT com
Subject: Re: random numbers?
In-Reply-To: <199801212339.PAA05833@adit.ap.net>
Message-ID: <Pine.SUN.3.91.980122183331.1427E-100000@is>
MIME-Version: 1.0

On Wed, 21 Jan 1998, Nate Eldredge wrote:

> >All C library functions I have used until now can be declared
> >using a provided header file.  I find it reassuring, 
> >because errors in copying the prototypes locally
> >can be avoided by using such header files.  
> It does seem strange.
> 
> On other systems:
> 
> Linux (i386, libc 5) declares `random' and `srandom' in <stdlib.h>, but
> inside "#ifdef __USE_BSD".
> 
> 4.4 BSD (FreeBSD 2.0.5, i386) has them in <stdlib.h> also, but inside
> 
> #if !defined(_ANSI_SOURCE) && !defined(_POSIX_SOURCE)

In my experience, void functions and functions which return an int and
are not ANSI/POSIX, usually have *no* prototypes on Unix systems.

- Raw text -


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