Mail Archives: djgpp/1998/01/22/11:34:13
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 -