Re: pass int* to perl

2009-06-12 Thread sisyphus
On Fri, Jun 12, 2009 at 10:49 PM, Patrick Dupre wrote: > > To pass an integer, I use to make a newSViv. > How do I do to pass a int* ? > > Perhaps not exactly what you're after ... hope it helps: ## use warnings; use Inline C => Config => BUILD_NOISY =

pass int* to perl

2009-06-12 Thread Patrick Dupre
Hello, I need to call perl from c. To pass an integer, I use to make a newSViv. How do I do to pass a int* ? Should I just cast the int* to int ans passed as an SV ? in perl I need to get the value by $$var. Thank. -- --- =