On Wed, 2005-05-25 at 11:33, Alaios wrote:
> Hi .. i want to know how i can store in to a variable
> the single value that i get from this loop
>
> for(vars=response->variable; vars;
> vars=vars->next_variable)
long intvalue = *vars->val.integer;
> I want an integer variable to hold the value
> e.x 1,2 or 3 e.t.c
That assumes that this *is* a (signed) integer value,
of course. If it's a different syntax, then you
might need to use one of the other fields in the
'val' union structure.
Dave
-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders