[R] question about F77_NAME()

Prof Brian D Ripley ripley at stats.ox.ac.uk
Fri Feb 8 16:06:00 CET 2002


On Fri, 8 Feb 2002, Liaw, Andy wrote:

> Dear R-help,
>
> Sorry if this is way obvious.  (It just wasn't for me...)
>
> Do all parameters passed to Fortran routines from C need to be declared as
> pointers?  In various header files (e.g., Linpack.h), that seems to be the
> case.

Yes. Fortran passes by reference.

> Also, what type should I declare in front of F77_NAME() for a subroutine?
> void?

Yes.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list