From cgenolin at u-paris10.fr  Sun Feb 14 12:58:31 2010
From: cgenolin at u-paris10.fr (Christophe Genolini)
Date: Sun, 14 Feb 2010 12:58:31 +0100
Subject: [Rd] Portability of a C function
Message-ID: <4B77E567.4060603@u-paris10.fr>

Hi the list,

In a package P1, I write a function f1 in C, potentially an internal 
function (not to be called from R).
In a package P2, I write a function f2 in C. The f2 function needs to 
use f1 from P1. Is it possible ?

--- 8< ---- In file P1.c ---------
double f1(x,y){
   ....
}

--- 8< ---- In file P2.c ---------
void f2(x,y,z){
   double result;
   ....
   result = f1(x,y);
   ....
}

Thanks
Christophe



[Rd] Portability of a C function
Christophe Genolini