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 |
); |
Parameters
dst
[out] Points to an RFC1157VarBind structure to receive the copy.
src
[in] Points to an RFC1157VarBind 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 SnmpUtilVarBindFree function to free memory that the SnmpUtilVarBindCpy function allocates for the destination.
See Also