min(D3) min(D3)
NAME
min - return the lesser of two integers
SYNOPSIS
#include <sys/ddi.h>
int min(int int1, int int2);
Arguments
int1, int2
The integers to be compared.
DESCRIPTION
min compares two integers and returns the lesser of the two.
Return Values
The lesser of the two integers.
USAGE
If the int1 and int2 arguments are not of the specified type
the results are undefined.
This interface may be implemented in a way that causes the
arguments to be evaluated multiple times, so callers should
beware of side effects.
Level
Initialization, Base or Interrupt.
Synchronization Constraints
Does not sleep.
Driver-defined basic locks, read/write locks, and sleep locks
may be held across calls to this function.
REFERENCES
max(D3)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1