From 100d1b33f088fd38f69129afff7f9c2a1e084a57 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 24 May 2024 06:52:24 +0200 Subject: Merging upstream version 6.8. Signed-off-by: Daniel Baumann --- man3/MAX.3 | 75 -------------------------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 man3/MAX.3 (limited to 'man3/MAX.3') diff --git a/man3/MAX.3 b/man3/MAX.3 deleted file mode 100644 index de46614..0000000 --- a/man3/MAX.3 +++ /dev/null @@ -1,75 +0,0 @@ -.\" Copyright (C) 2021 Alejandro Colomar -.\" -.\" SPDX-License-Identifier: Linux-man-pages-copyleft -.\" -.TH MAX 3 2023-10-31 "Linux man-pages 6.7" -.SH NAME -MAX, MIN \- maximum or minimum of two values -.SH LIBRARY -Standard C library -.RI ( libc ", " \-lc ) -.SH SYNOPSIS -.nf -.B #include -.P -.BI MAX( a ", " b ); -.BI MIN( a ", " b ); -.fi -.SH DESCRIPTION -These macros return the maximum or minimum of -.I a -and -.IR b . -.SH RETURN VALUE -These macros return the value of one of their arguments, -possibly converted to a different type (see BUGS). -.SH ERRORS -These macros may raise the "invalid" floating-point exception -when any of the arguments is NaN. -.SH STANDARDS -GNU, BSD. -.SH NOTES -If either of the arguments is of a floating-point type, -you might prefer to use -.BR fmax (3) -or -.BR fmin (3), -which can handle NaN. -.P -The arguments may be evaluated more than once, or not at all. -.P -Some UNIX systems might provide these macros in a different header, -or not at all. -.SH BUGS -Due to the usual arithmetic conversions, -the result of these macros may be very different from either of the arguments. -To avoid this, ensure that both arguments have the same type. -.SH EXAMPLES -.\" SRC BEGIN (MAX.c) -.EX -#include -#include -#include -\& -int -main(int argc, char *argv[]) -{ - int a, b, x; -\& - if (argc != 3) { - fprintf(stderr, "Usage: %s \en", argv[0]); - exit(EXIT_FAILURE); - } -\& - a = atoi(argv[1]); - b = atoi(argv[2]); - x = MAX(a, b); - printf("MAX(%d, %d) is %d\en", a, b, x); -\& - exit(EXIT_SUCCESS); -} -.EE -.\" SRC END -.SH SEE ALSO -.BR fmax (3), -.BR fmin (3) -- cgit v1.2.3