SnmpUtilVarBindListCpy

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

Parameters

dst

[out] Points to an RFC1157VarBindList structure to receive the copy.

src

[in] Points to an RFC1157VarBindList structure to copy.

Return Values

If the function succeeds, the return value is TRUE.

If the function fails, the return value is FALSE.

Remarks

Use the SnmpUtilVarBindListFree function to free memory that the SnmpUtilVarBindListCpy function allocates for the destination.

See Also

RFC1157VarBindList, SnmpUtilVarBindListFree, SnmpUtilOidCpy