[R] Calling C funtion from R help Needed

2009-08-31 Thread naresh kumar
Hello Forum,  I'm calling C function from R.It is a small sample trial  program. The C function will accept a string and a integer  and print them.  It is giving error segmentation fault. Below are the C function, Wrapper code ,R code and  R output.  Please

Re: [R] Calling C funtion from R help Needed

2009-08-31 Thread Steve Lianoglou
Hi, Perhaps you should try just passing in two integers to some toy C function just to make sure all the plumbing is correct before you play with strings/char arrays. In any case, some comments inline: On Aug 31, 2009, at 11:42 AM, naresh kumar wrote: Hello Forum, I'm calling C

[R] Calling C funtion from R help Needed

2009-08-28 Thread naresh4836
Hello Forum, I'm calling C function from R.It is a small sample trial program. The C function will accept a character and a integer and print them. It is printing some special character instead of input character. Below are the C function, Wrapper code ,R code and R output. Please help me in