dyn.load("helloworld.so") n=10 a=rep(1,n) b=seq(from=2,to=20,length.out=n) c=rep(-1,n) .C("myadd", a=as.integer(a), b=as.integer(b), c=as.integer(c))$c