Skip to content
Prev 82704 / 398506 Next

correct C function usage

On Tue, 13 Dec 2005, Ido M. Tamir wrote:

            
You need to pass the length to the C routine and check you do not 
overwrite it.  (As in the parts you -snip-ed below.)
.C returns a list, an element for each argument after the first, named if 
the arguments were named.  So this selects the (copy) of the vector sent 
back as the last argument of the C function.
What do testFillC(1) or testFillC(logical(0)) do?