| max | Function (Macro)

stdlib.h

any_type max (any_type a, anytype b);

Maximum of two integer numbers.

max is an inline function (implemented using GNU C smart macros) which returns the greater 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: min