Partager via


SnmpUtilOctetsNCmp (Compact 2013)

3/26/2014

This 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.

Syntax

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

Parameters

  • pOctets2
    Pointer to a second AsnOctetString structure to compare.
  • nChars
    Specifies the number of subidentifiers to compare.

Return Value

The function returns a value greater than zero if pOctets1is greater than pOctets2, zero if pOctets1equals pOctets2, and less than zero if pOctets1is less than pOctets2.

Remarks

The SnmpUtilOctetsCmp function calls the SnmpUtilOctetsNCmp function.

Requirements

Header

snmp.h

Library

snmpapi.lib

See Also

Reference

SNMP Functions
SnmpUtilOctetsCmp