Share via


SnmpUtilOctetsNCmp

The SnmpUtilOctetsNCmp function compares two octet strings. The function compares the subidentifiers in the strings until it reaches the number of subidentifiers specified by the nChars parameter.

SNMPAPI SnmpUtilOctetsFree (
AsnOctetString * pOctets1 , 
AsnOctetString * pOctets2 , 
UINT nChars );

Parameters

  • pOctets1
    Pointer to an AsnOctetString structure to compare.
  • pOctets2
    Pointer to a second AsnOctetString structure to compare.
  • nChars
    Specifies the number of subidentifiers 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

Runs on Versions Defined in Include Link to
Windows CE OS 3.0 and later Snmp.h   Snmpapi.lib

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

SnmpUtilOctetsCmp

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.