This is the mail archive of the
mailing list for the GCC project.
Re: How to find the phototype of function "drand48()"
- From: Andrea 'Fyre Wyzard' Bocci <fwyzard at inwind dot it>
- To: "kan zheng" <kz01r at ecs dot soton dot ac dot uk>,<gcc at gnu dot org>
- Date: Sat, 24 Nov 2001 01:39:43 +0100
- Subject: Re: How to find the phototype of function "drand48()"
At 21.39 23/11/01 (GMT +0000), kan zheng wrote:
>Now I have two workshop to rum my C codes, one is VC++, another is gcc2.952.
>There is one function "drand48()" in my program, this function is only found
>at stdlib.hhen using gcc, not at stdlib.h when using gcc.
I did not understand this passage.
>So I have to find the definition of that function.
>Could you please provide it or tell me where I can find it?
From "Linux Programmer's Manual" man pages, the prototype is:
However, these functions conform to "SVID 3" (which meaning I don't know),
and (citing the manpages) :
"These functions are declared obsolete by SVID 3, which states that
rand() should be used instead."
So, maybe VC++ library does not have it; if this is true, even defining the
function prototype will get you nowhere.
If you want to use both compilers, you should switch to use rand().