Displaying 1 result from an estimated 1 matches for "main2r".
Did you mean:
main2
2013 Jun 19
3
Calling an array in a struct in C to R
...e can
provide me with the information or pointers I need in order to understand
the way in which the communication between R and C occurs. I have the
following C code which basicallly reflects what I want:
typedef struct
{
float *array;
size_t used;
size_t size;
} Array;
void main2R()
{
Array a;
examplefunction(&a); /*fills and dynamically grows a->array*/
}
Now I would want to return a.array or a->array to R. According to the R
manuals, the compiled C code should not return anything except through its
arguments. The problem here is, I have a dynamical...