On 31/01/07, jin zhou wrote:

> netsnmp_variable_list *
> exampleTable_get_first_data_point(...)
> {
> *my_loop_context = 0;
> return exampleTable_get_next_data_point(...);
> }


> netsnmp_variable_list *
> exampleTable_get_next_data_point(...)
> {
> int i = (int) *my_loop_context; // i.e. 0
> snmp_set_var_value(put_index_data, exampleTable_head[i].userIndex,...);
> *my_data_context = (void *) &exampleTable_head[i];

// i is still 0
> *my_loop_context = (void *) ++i; // i becomes 1
> return put_index_data;
> }


So the first row to be returned should be exampleTable_head[0]

Is that what you are seeing, or not?
It's not totally clear what you mean by an "empty row".

What is the exact data you are working with?
(i.e. the contents of the exampleTable_head array)
What results do you actually see?
(exact output please)

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...rge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users