函数声明后的变量声明是什么意思?

时间:2014-04-14 10:15:31

标签: c variables gcc glibc

通过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);
}

0 个答案:

没有答案