From a3f3dcca676b7716f9fbc3d1cd66168209e433fb Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Mon, 1 Dec 2025 19:16:44 +0100 Subject: [PATCH] man/man3/_Maxof.3: Add page Signed-off-by: Alejandro Colomar --- man/man3/_Maxof.3 | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 man/man3/_Maxof.3 diff --git a/man/man3/_Maxof.3 b/man/man3/_Maxof.3 new file mode 100644 index 000000000..ed0547d66 --- /dev/null +++ b/man/man3/_Maxof.3 @@ -0,0 +1,51 @@ +.\" Copyright, the authors of the Linux man-pages project +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.TH _Maxof 3 (date) "Linux man-pages (unreleased)" +.SH NAME +_Maxof, _Minof +\- +limits of an integer type +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.nf +.BI T\~_Maxof(typename\~ T ); +.BI T\~_Minof(typename\~ T ); +.fi +.SH DESCRIPTION +These operators return +the maximum or minimum representable value +of the operand integer type. +.P +If the operand is not an integer type, +it produces a compilation error. +.SH RETURN VALUE +The maximum or minimum representable value +of the operand integer type. +.P +The result is an integer constant expression +of the same type as the operand. +.SH STANDARDS +GNU. +.SH HISTORY +gcc 16. +.SH EXAMPLES +.\" SRC BEGIN (maxof.c) +.EX +#include +#include +#include +\& +int +main(void) +{ + static_assert(_Maxof(long) == LONG_MAX); + exit(EXIT_SUCCESS); +} +.EE +.\" SRC END +.SH SEE ALSO +.BR operator (7) -- 2.47.3