cc: [email protected]
Subject: Re: Re: [ast-users] Seeking C code example for "${!myli...@]}"
--------
> Does that mean that |nv_opensub()| only works for indexed arrays ?
No, it works for associative arrays and for index arrays whose elements
are compound variables.
However, if np is a pointer to is an associatve array variable x, and you do
nv_putval(np,"sub",0);
to set the subscript to sub, then
nq = nv_opensub(np)
will give a pointer to the variable x[sub] and nextsub(nq) will return
0 unless x[sub] is itself an array.
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users