Date: Thu, 22 Jan 1998 18:33:55 +0200 (IST) From: Eli Zaretskii To: Nate Eldredge cc: Van Mo Dang , djgpp AT delorie DOT com Subject: Re: random numbers? In-Reply-To: <199801212339.PAA05833@adit.ap.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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 , but > inside "#ifdef __USE_BSD". > > 4.4 BSD (FreeBSD 2.0.5, i386) has them in 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.