The SnmpUtilOidNCmp function compares two object identifier variables up to the length specified by the Len parameter.
SNMPAPI SnmpUtilOidNCmp(
AsnObjectIdentifier *ObjIdA, |
// first object identifier |
AsnObjectIdentifier *ObjIdB, |
// second object identifier |
UINT Len |
// maximum length to compare |
); |
The function returns a value greater than zero if ObjIdA is greater than ObjIdB, zero if ObjIdA equals ObjIdB, and less than zero if ObjIdA is less than ObjIdB.