[R] How to use character in C code?

cgenolin cgenolin at u-paris10.fr
Fri May 10 15:51:44 CEST 2013

Hi the list,
I include some C code in a R function using .C. The argument is a character.
I find how to acces to the characters one by one:

--- 8< --- C ------------
void dealWithCharacter(char **chaine, int *size){
  int i=0;
    Rprintf("Le caractere %i est %c\n",i,chaine[0][i]);
--- 8< ------ R ---------
ch <- "zerta"
--- 8< ------------------

But is it possible to acces to the full word at once?


View this message in context: http://r.789695.n4.nabble.com/How-to-use-character-in-C-code-tp4666757.html
Sent from the R help mailing list archive at Nabble.com.

More information about the R-help mailing list