cc: [email protected]
Subject: Re: Re: [ast-users] Seeking C code example for "${!myli...@]}"
--------
> Wouldn't it be easier to use |nv_opensub(np)| to get a reference to the
> first array element and the cyle through all elements:
> -- snip --
> /* open np to array */
> np = nv_open("x", shp->var_tree, 0);
> /* cycle through all array elements */
> for( np_sub = nv_opensub(np) ; nv_nextsub(np_sub) != 0 ; )
> {
> }
>
No, this is not correct. nv_opensub(np) will return the node
pointer to x[0] if it exists or NULL otherwise.
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users