The SnmpUtilVarBindListCpy function copies the RFC1157VarBindList structure, and allocates any necessary memory for the destination's copy.
SNMPAPI SnmpUtilVarBindListCpy(
RFC1157VarBindList *dst, |
// destination variable bindings list |
RFC1157VarBindList *src |
// source variable bindings list |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Use the SnmpUtilVarBindListFree function to free memory that the SnmpUtilVarBindListCpy function allocates for the destination.