max(D3) max(D3)
NAME
max - return the larger of two integers
SYNOPSIS
#include <sys/ddi.h>
int max(int int1, int int2);
Arguments
int1, int2
The integers to be compared.
DESCRIPTION
max compares two integers and returns the larger of two.
Return Values
The larger 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
min(D3)
NOTICES
Portability
All processors
Applicability
ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp
Copyright 1994 Novell, Inc. Page 1