search for: r_str_alloc

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

2012 Mar 18
2
malloc/calloc/strdup and R's aequivalents
...have some functions, that could make porting easier. For example, if I want to resuse a function, that opens a file and needs a char* stringname then it would add more effort if I need to go via CHARSXP or so. I would need to rewrite many pieces of the code. (Should I implement my own kind of R_str_alloc() ?) My main problem at the moemnt is, that I can use R_alloc() but when I try to use Calloc() or R_Calloc() I can't compile. So, what header-files are necessary, and what are the prototypes of these functions? If nothing of that stuff works, I would need to use the original calloc() / free...