Re: R-alpha: dyn.load && character strings

Douglas Bates (bates@stat.wisc.edu)
Fri, 8 Nov 96 08:17 CST


Message-Id: <m0vLrk6-000hhwC@franz.stat.wisc.edu>
Date: Fri, 8 Nov 96 08:17 CST
From: Douglas Bates <bates@stat.wisc.edu>
To: Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at>
Subject: Re: R-alpha: dyn.load && character strings
In-Reply-To: <199611081137.MAA14437@galadriel.ci.tuwien.ac.at>

>>>>> "Friedrich" == Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at> writes:

  Friedrich> I cannot figure out how to pass character strings to a
  Friedrich> dynamically loaded C-function (using .C). Everything
  Friedrich> works just fine for doubles, but i cannot passs even a
  Friedrich> single character.

Are you sure you are passing the strings to a C variable of type char **?
That often catches people.  They think the C variable will be a char *,
not a char **.  See section 7.2 of Becker, Chambers, and Wilks (1988).
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-