Platform SDK: Network Management

SnmpUtilOctetsCmp

The SnmpUtilOctetsCmp function compares two octet strings. This function is an element of the SNMP Utility API.

SNMPAPI SnmpUtilOctetsCmp(
  AsnOctetString *pOctets1,  // first octet string
  AsnOctetString *pOctets2   // second octet string
);

Parameters

pOctets1
Pointer to an AsnOctetString structure to compare.
pOctets2
Pointer to a second AsnOctetString structure to compare.

Return Values

The function returns a value greater than zero if pOctets1 is greater than pOctets2, zero if pOctets1 equals pOctets2, and less than zero if pOctets1 is less than pOctets2.

Remarks

The SnmpUtilOctetsCmp function calls the SnmpUtilOctetsNCmp function.

Requirements

  Windows NT/2000: Requires Windows 2000.
  Windows 95/98: Requires Windows 95 or later.
  Header: Declared in Snmp.h.
  Library: Use Snmpapi.lib.

See Also

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