通过glibc源代码我反对这样的代码:
double
erand48 (xsubi)
unsigned short int xsubi[3];
{
double result;
(void) __erand48_r (xsubi, &__libc_drand48_data, &result);
return result;
}
你能解释一下函数头和正文之间的xsubi声明是什么意思吗?
unsigned short int xsubi[3];
同样的事情是drand48_r:
int
drand48_r (buffer, result)
struct drand48_data *buffer;
double *result;
{
return __erand48_r (buffer->__x, buffer, result);
}