ADC Home > Reference Library > Reference > Darwin > Miscellaneous User Space API Reference

 


container.h

Includes:
<net-snmp/types.h>
<net-snmp/library/factory.h>
<net-snmp/library/snmp_logging.h>

Introduction



Functions

netsnmp_compare_cstring
netsnmp_compare_mem
netsnmp_compare_netsnmp_index
netsnmp_container_simple_free
while
while( x)
while( x)
while( x)
while(x -)

netsnmp_compare_cstring


int netsnmp_compare_cstring(
    const void *lhs,
    const void *rhs);  
Discussion

first data element is a 'char *'


netsnmp_compare_mem


int netsnmp_compare_mem(
    const char *lhs,
    size_t lhs_len, 
    const char *rhs,
    size_t rhs_len);  
Discussion

useful for octet strings


netsnmp_compare_netsnmp_index


int netsnmp_compare_netsnmp_index(
    const void *lhs,
    const void *rhs);  
Discussion

first data element is a 'netsnmp_index'


netsnmp_container_simple_free


void netsnmp_container_simple_free(
    void *data,
    void *context);  
Discussion

for_each callback to call free on data item


while


while(
    x->prev) x = x->prev;  while(
    x) 
Discussion

start at first container


while( x)


while(
    x->prev) x = x->prev;  while(
    x) 
Discussion

start at first container


while( x)


while(
    x->next) x = x->next;  while(
    x) 
Discussion

start at last container


while( x)


while(
    x->next) x = x->next;  while(
    x) 
Discussion

start at last container


while(x -)


while(
    x->next) x = x->next;  while(
    x->prev) 
Discussion

start at last container


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.
Last Updated: 2006-06-20