> I am trying to implement a table with two objects and
> three indices. I am just trying to fill the stub
> values for testing purpose...
>  .... Kindly look at the code and comment whether I am
> implementing the "get_first_data_point()" function
> correctly or not


No - that code looks basically correct.
Normally I'd expect the 'node' structure to be defined
and initialised outside the get_{first,next} routine.
Perhaps looking at some globally-scoped linked list,
or loaded from some other subsystem.
  But since you say you're just working with stub values,
I presume this is part of your initial simple tests.

The one thing that does seem wrong is that you never
actually allocate memory for this structure.  You seem
to be allocating values into thin air.
   Shouldn't you "malloc" space for this structure somewhere?

Dave

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to