[Rd] Calling C functions with value parameters

Jeffrey J. Hallman jhallman at frb.gov
Mon Aug 17 16:23:47 CEST 2009


One hassle I could do without is the necessity of writing C wrapper functions
like this:

void fameInit(int *status){
  cfmini(status);
  return;
}

when I want to call a library function (cfmini, in this case) that takes an
int argument.  The .C interface only lets me pass a pointer to an int, rather
than the int itself.

Is there any chanch that .C could be enhanced to allow passing arguments by
value to the compiled code?  It would make some of my stuff much simpler.

-- 
Jeff



More information about the R-devel mailing list