The SnmpUtilVarBindCpy function copies the RFC1157VarBind structure, and allocates any memory necessary for the destination structure.
SNMPAPI SnmpUtilVarBindCpy(
RFC1157VarBind *dst, |
// destination variable bindings |
RFC1157VarBind *src |
// source variable bindings |
); |
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
Use the SnmpUtilVarBindFree function to free memory that the SnmpUtilVarBindCpy function allocates for the destination.