| min | Function (Macro)

stdlib.h

any_type min (any_type a, anytype b);

Minimum of two integer values.

min is an inline function (implemented using GNU C smart macros) which returns the smaller of a and b. They may be any numeric values, either integer or floating point numbers, and they also may be pointers to the same base type. The result has the type of the argument which has greater range of possible values (e.g. if one is float and second one is long int, the result is of float type).

See also: max