From jhallman at frb.gov  Mon Aug 17 16:23:47 2009
From: jhallman at frb.gov (Jeffrey J. Hallman)
Date: Mon, 17 Aug 2009 10:23:47 -0400
Subject: [Rd] Calling C functions with value parameters
Message-ID: <xmrws52plho.fsf@mralx1.rsma.frb.gov>

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



[Rd] Calling C functions with value parameters
Jeffrey J. Hallman