On Thursday, November 21, 2013 at 22:53:02 (-0600) Maurice LeBrun writes:
> I became curious reading this thread so I had a look -- apparently the answer
> is in the code. From src/plcore.c:
>
> ...
> void
> plgDevs( const char ***p_menustr, const char ***p_devname, int *p_ndev )
> {
> plgdevlst( *p_menustr, *p_devname, p_ndev, -1 );
> }
>
> static void
> plgdevlst( const char **p_menustr, const char **p_devname, int *p_ndev, int
> type )
> {
> ...
>
> The pointers are dereferenced by the API calls to the implementing routine,
> so
> are not needed. I probably meant to go back & fix that up eventually but
> ended up forgetting all about it. :)
I should add, I think I initially saw the problem as Andrew put it, that the
array of char*'s was like a 2d array so in order to "return" it I needed to
pass a pointer to a 2d array i.e. char***. But then realized I could skip
that and just do pointer copies instead. Bleah.. give me a nice class foo&
any day..
--
Maurice LeBrun
------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing
conversations that shape the rapidly evolving mobile landscape. Sign up now.
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Plplot-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/plplot-devel