SnmpUtilOctetsCpy

[This is preliminary documentation and subject to change.]

The SnmpUtilOctetsCpy function copies the variable pointed to by the pOctetsSrc parameter to the variable pointed to by the pOctetsDst parameter. The function allocates any necessary memory for the destination's copy. The SnmpUtilOctetsCpy function is an element of the SNMP Utility API.

SNMPAPI SnmpUtilOctetsCpy(
  AsnOctetString *pOctetsDst,  // destination octet string
  AsnOctetString *pOctetsSrc   // source octet string
);
 

Parameters

pOctetsDst
Pointer to an AsnOctetString structure to receive the copy.
pOctetsSrc
Pointer to an AsnOctetString structure to copy.

Return Values

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.

QuickInfo

  Windows NT: Requires version 5.0 or later.
  Windows: Requires Windows 95 or later.
  Windows CE: Unsupported.
  Header: Declared in snmp.h.
  Import Library: Use snmpapi.lib.

See Also

Simple Network Management Protocol (SNMP) Overview, SNMP Functions, AsnOctetString, SnmpUtilOctetsFree