Re: XS to return Perl Arrays - and NetWare Select()

[email protected] (NormW)
Newsgroups perl.xs
Message-ID <[email protected]>
G/Morning,
On 10/06/2011 4:36 AM, Josh Goldberg wrote:
> What I do is something like
>
> AV *results;
> results = newAV();
> ....
> something = (AV *)SvRV(*other_av_thing);
> ....
> av_store(results,i, something);
> ....
> RETVAL = results;
> sv_2mortal((SV *)RETVAL);
Have seen that method in several XS programs (and PerlXSTut iirc) but it 
is unclear if that works when 3 elements are to be returned; will have a 
closer look at the Perl XS docs...
Thx,
Norm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.