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

Friedrich Leisch (Friedrich.Leisch@ci.tuwien.ac.at)
Fri, 8 Nov 1996 16:33:21 +0100


Date: Fri, 8 Nov 1996 16:33:21 +0100
Message-Id: <199611081533.QAA15234@galadriel.ci.tuwien.ac.at>
From: Friedrich Leisch <Friedrich.Leisch@ci.tuwien.ac.at>
To: Douglas Bates <bates@stat.wisc.edu>
Subject: Re: R-alpha: dyn.load && character strings
In-Reply-To: <m0vLrk6-000hhwC@franz.stat.wisc.edu>
 <m0vLrk6-000hhwC@franz.stat.wisc.edu>

>>>>> On Fri, 8 Nov 96 08:17 CST,
>>>>> Douglas Bates wrote:

>>>>> "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).

That did the trick ... thanks a lot!!!

Have a nice weekend,
Fritz

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                          Friedrich  Leisch 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Institut für Statistik                        Tel: (+43 1) 58801 4541
 Technische Universität Wien                   Fax: (+43 1)  504 14 98
 Wiedner Hauptstraße 8-10/1071        Friedrich.Leisch@ci.tuwien.ac.at
 A-1040 Wien, Austria               http://www.ci.tuwien.ac.at/~leisch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
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
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-