DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

min(D3)


min -- return the lesser of two integers

Synopsis

   #include <sys/ddi.h>
   

int min(int int1, int int2);

Description

min compares two integers and returns the lesser of the two.

Arguments


int1, int2
The integers to be compared.

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.

Context and synchronization

All contexts.

Hardware applicability

All

Version applicability

ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

max(D3)
19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005