Prev Next

SnmpUtilOidCpy info  Overview  Group

The SnmpUtilOidCpy function copies the variable pointed to by the SrcObjId parameter to the DestObjId  parameter, allocating any necessary memory for the destination’s copy.

SNMPAPI SnmpUtilOidCpy(

    AsnObjectIdentifier *DestObjId,

// destination object identifier

    AsnObjectIdentifier *SrcObjId

// source object identifier

   );

Parameters

DestObjId
[out] Points to an AsnObjectIdentifier structure to receive the copy.
SrcObjId
[in] Points to an AsnObjectIdentifier structure to copy.

Return Values

If the function succeeds, the return value is nonzero.

If the function fails, the return value is zero.

Remarks

The application can free memory that the SnmpUtilOidCpy function allocates for the destination with the SnmpUtilOidFree function.

See Also

SnmpUtilOidFree