R-beta: characters to Fortran
Ross Ihaka
ihaka at stat.auckland.ac.nz
Fri Jun 5 10:35:45 CEST 1998
Remember that everything in R is a vector. You don't pass a single
character string, but rather an array of strings of length 1.
You also probably need to be pretty careful about what you do with
character strings. Compilers can pass string lengths in some pretty
tricky ways (extra undocumented aguments etc). This can create
problems.
As a general rule I would recommend C for string handling stuff.
Alternatively, encode the string as an integer in the interpreted
code which calls the fortran.
Ross
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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