diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:40:15 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 19:40:15 +0000 |
commit | 399644e47874bff147afb19c89228901ac39340e (patch) | |
tree | 1c4c0b733f4c16b5783b41bebb19194a9ef62ad1 /man3type/div_t.3type | |
parent | Initial commit. (diff) | |
download | manpages-399644e47874bff147afb19c89228901ac39340e.tar.xz manpages-399644e47874bff147afb19c89228901ac39340e.zip |
Adding upstream version 6.05.01.upstream/6.05.01
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'man3type/div_t.3type')
-rw-r--r-- | man3type/div_t.3type | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/man3type/div_t.3type b/man3type/div_t.3type new file mode 100644 index 0000000..f0bce13 --- /dev/null +++ b/man3type/div_t.3type @@ -0,0 +1,58 @@ +.\" Copyright (c) 2020-2022 by Alejandro Colomar <alx@kernel.org> +.\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com> +.\" +.\" SPDX-License-Identifier: Linux-man-pages-copyleft +.\" +.\" +.TH div_t 3type 2023-03-30 "Linux man-pages 6.05.01" +.SH NAME +div_t, ldiv_t, lldiv_t, imaxdiv_t \- +quotient and remainder of an integer division +.SH LIBRARY +Standard C library +.RI ( libc ) +.SH SYNOPSIS +.EX +.B #include <stdlib.h> +.PP +.B typedef struct { +.BR " int quot;" " /* Quotient */" +.BR " int rem;" " /* Remainder */" +.B } div_t; +.PP +.B typedef struct { +.BR " long quot;" " /* Quotient */" +.BR " long rem;" " /* Remainder */" +.B } ldiv_t; +.PP +.B typedef struct { +.BR " long long quot;" " /* Quotient */" +.BR " long long rem;" " /* Remainder */" +.B } lldiv_t; +.PP +.B #include <inttypes.h> +.PP +.B typedef struct { +.BR " intmax_t quot;" " /* Quotient */" +.BR " intmax_t rem;" " /* Remainder */" +.B } imaxdiv_t; +.EE +.SH DESCRIPTION +.RI [[ l ] l ] div_t +is the type of the value returned by the +.RB [[ l ] l ] div (3) +function. +.PP +.I imaxdiv_t +is the type of the value returned by the +.BR imaxdiv (3) +function. +.SH STANDARDS +C11, POSIX.1-2008. +.SH HISTORY +C99, POSIX.1-2001. +.SH SEE ALSO +.BR div (3), +.BR imaxdiv (3), +.BR ldiv (3), +.BR lldiv (3) |