次の方法で共有


SnmpUtilOctetsCpy (Compact 2013)

3/26/2014

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

Syntax

SNMPAPI SnmpUtilOctetsCpy(
  AsnOctetString pOctetsDest, 
  AsnOctetString pOctetsSrc 
);

Parameters

  • pOctetsDest
    Pointer to an AsnOctetString structure to receive the copy.
  • pOctetsSrc
    Pointer to an AsnOctetString 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 SnmpUtilOctetsFree function to free the memory that the SnmpUtilOctetsCpy function allocates for the destination structure.

Requirements

Header

snmp.h

Library

snmpapi.lib

See Also

Reference

SNMP Functions
SnmpUtilOctetsFree