> If you're going to malloc everything right away, why not just use an array
> and skip the pointers.

I haven't looked at the code in question, but the most likely
explanation would be if you're going to re-size the array at a later
date - expanding it if the number of sensors exceeds the initial
allocation.

With a fixed array, you'd have to max out at that limit, and discard any extras.

Dave

-------------------------------------------------------------------------
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