David Korn wrote:
> 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.

Does that mean that |nv_opensub()| only works for indexed arrays ?

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) [email protected]
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 3992797
 (;O/ \/ \O;)
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to