Re: [Rd] allocating character string of given size for .C

2006-08-02 Thread Duncan Murdoch
On 8/2/2006 11:08 AM, Tamas K Papp wrote: > Hi, > > I have a C function (called via .C) which returns (by writing into > buffers) some values of known (or fixed) length, all of these are > numerical so I can allocate storage for them via as.double() and > as.integer(). > > However, there is a pot

Re: [Rd] allocating character string of given size for .C

2006-08-02 Thread Prof Brian Ripley
On Wed, 2 Aug 2006, Tamas K Papp wrote: > Hi, > > I have a C function (called via .C) which returns (by writing into > buffers) some values of known (or fixed) length, all of these are > numerical so I can allocate storage for them via as.double() and > as.integer(). > > However, there is a pote