home *** CD-ROM | disk | FTP | other *** search
- -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-snmp.adb,v $
- -- $Revision: 1.1 $ $Date: 95/02/09 10:09:06 $ $Author: scoleman $
- -------------------------------------------------------------------------------
- --
- -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS FURNISHED "AS IS" WITHOUT
- -- WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
- -- TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
- -- PURPOSE. The user assumes the entire risk as to the accuracy and the
- -- use of this file.
- --
- -- Copyright (c) Intermetrics, Inc. 1995
- -- Royalty-free, unlimited, worldwide, non-exclusive use, modification,
- -- reproduction and further distribution of this file is permitted.
- --
- -------------------------------------------------------------------------------
-
-
- package body Win32.Snmp is
-
- use type Interfaces.C.Unsigned;
-
- function SNMP_oidcmp(
- A : access AsnObjectIdentifier;
- B : access AsnObjectIdentifier)
- return Win32.INT is -- snmp.h:302
- maxlen : Win32.UINT := A.all.idLength;
- begin
- if (B.all.idLength > maxlen) then
- maxlen := B.all.idLength;
- end if;
- return SNMP_oidncmp(A, B, maxlen);
- end SNMP_oidcmp;
-
- end Win32.Snmp;
-