search for: typcasting

Displaying 1 result from an estimated 1 matches for "typcasting".

Did you mean: typecasting
2004 Sep 20
1
problem typcasting return of R_ExternalPtrAddr(SEXP s)
...amically loaded from the file named in dllname. I use getNativeSymbolInfo(func, dllname)$address to get the address of the function and pass it to a C function called via the .Call interface. Inside that C function, I use R_ExternalPtrAddr(deriv_func) to get the function pointer. This requires typcasting the return value of R_ExternalPtrAddr from (void *) to (deriv_func *), defined in a typedef in call_lsoda(). To be more explicit (I'm replacing irrelevant arguments with ellipses): In lsoda(...,func,dllname,...), func contains a string giving the name of a function which is defined in the dl...