Share via


SnmpUtilAsnAnyCpy (Compact 2013)

3/26/2014

This function copies the variable pointed to by the pAnySrcparameter to the pAnyDstparameter. The function allocates any necessary memory for the destination's copy.

Syntax

SNMPAPI SnmpUtilAsnAnyCpy(
  AsnAny* pAnyDest, 
  AsnAny* pAnySrc 
);

Parameters

  • pAnyDest
    Pointer to an AsnAny structure to receive the copy.
  • pAnySrc
    Pointer to an AsnAny source to copy.

Return Value

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

Call the SnmpUtilAsnAnyFree function to free the memory that the SnmpUtilAsnAnyCpy function allocates for the destination structure.

Requirements

Header

snmp.h

Library

snmpapi.lib

See Also

Reference

SNMP Functions
SnmpUtilAsnAnyFree
AsnAny