_Minof3
Limits of an integer type
Part of _Maxof(3).
Usage
T _Maxof(typename T); T _Minof(typename T);
Library
Standard C library (libc)
Overview
These operators return the maximum or minimum representable value of the operand integer type.
If the operand is not an integer type, it produces a compilation error.
Return value
The maximum or minimum representable value of the operand integer type.
The result is an integer constant expression of the same type as the operand.
Examples
#include <assert.h>
#include <limits.h>
#include <stdlib.h>
int
main(void)
{
static_assert(_Maxof(long) == LONG_MAX);
exit(EXIT_SUCCESS);
}