drand48()

Guangliang He ghe at physics.orst.edu
Thu May 9 09:40:14 AEST 1991


In article <1991May08.214654.26143 at lynx.CS.ORST.EDU>, ghe at physics.orst.edu (Guangliang He) writes:
|> Can anyone tell me what kind result I should expect from the following little
|> C program?
|> -----
|> #include <stdio.h>
|> 
|> main()
|> {
|>     int i;
|> 
|>     for (i = 0; i < 10; i++)
|>         printf("%e\n", drand48());
|> }
|> -----
|> 
|> 
|> What is the problem on RS/6000? Is it a BUG in drand48() or is it 'work
|> as designed'??? :-( :-(
|> 
|> ---
|>   Guangliang He                |  -----Go Blazers!-----
|>   ghe at physics.orst.edu         |  -----Go Blazers!-----            
|> 

-- 

As Marc (jackk at shasta.Stanford.EDU) pointed in a Email message, declearing
double drand48() fix the problem on AIX. Sorry for the confusion, folks.

But I'm still wondering why the program worked on SUN without declearing
double drand48(), What is the difference between two compilers?

---
  Guangliang He                |  -----Go Blazers!-----
  ghe at physics.orst.edu         |  -----Go Blazers!-----            



More information about the Comp.unix.aix mailing list