Compartilhar via


SnmpUtilOidCpy (Compact 2013)

3/26/2014

This function copies the variable pointed to by the pOidSrc parameter to the pOidDst parameter, allocating any necessary memory for the destination's copy.

Syntax

SNMPAPI SnmpUtilOidCpy(
  AsnObjectIdentifier* pOidDst, 
  AsnObjectIdentifier* pOidSrc 
);

Parameters

  • pOidSrc
    Pointer to an AsnObjectIdentifier structure 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 SnmpUtilOidFree function to free memory that the SnmpUtilOidCpy function allocates for the destination structure.

Link Library: Snmpapi.lib.

Requirements

Header

snmp.h

Library

snmpapi.lib

See Also

Reference

SNMP Functions
SnmpUtilOidFree