Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Kernel Functions for Driversmax(9F)


NAME

 max - return the larger of two integers

SYNOPSIS

 
#include <sys/ddi.h>
int max(int int1, int int2);

INTERFACE LEVEL

 

Architecture independent level 1 (DDI/DKI).

PARAMETERS

 
int1
The first integer.
int2
The second integer.

DESCRIPTION

 

max() compares two signed integers and returns the larger of the two.

RETURN VALUES

 

The larger of the two numbers.

CONTEXT

 

max() can be called from user or interrupt context.

SEE ALSO

 

min(9F)

Writing Device Drivers


SunOS 5.9Go To TopLast Changed 11 Apr 1991

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.