I am trying the FREE net-snmp library things. Like the FREE libxml++
library, it lacks of a reasonable document on its API. Its very
begining example code compiles and runs. It says "blah blah .." when I
substitute the host address for a snmp equipped machine
``192.168.5.10' ' within our LAN like this:
session.peernam e = strdup("192.168 .5.10");
Is strdup still in use? Is there anything prevents the code from
becoming these:
char *p = "192.168.5. 10";
char a[] = 192.168.5.10";
Thank you for your time.
library, it lacks of a reasonable document on its API. Its very
begining example code compiles and runs. It says "blah blah .." when I
substitute the host address for a snmp equipped machine
``192.168.5.10' ' within our LAN like this:
session.peernam e = strdup("192.168 .5.10");
Is strdup still in use? Is there anything prevents the code from
becoming these:
char *p = "192.168.5. 10";
char a[] = 192.168.5.10";
Thank you for your time.
Comment