1 .\" Copyright (c) 2020-2022 by Alejandro Colomar <colomar.6.4.3@gmail.com>
2 .\" and Copyright (c) 2020 by Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
7 .TH DIV_T 3type (date) "Linux man-pages (unreleased)"
9 div_t, ldiv_t, lldiv_t, imaxdiv_t \-
10 quotient and remainder of an integer division
16 .B #include <stdlib.h>
19 .BR " int quot;" " /* Quotient */"
20 .BR " int rem;" " /* Remainder */"
24 .BR " long quot;" " /* Quotient */"
25 .BR " long rem;" " /* Remainder */"
29 .BR " long long quot;" " /* Quotient */"
30 .BR " long long rem;" " /* Remainder */"
33 .B #include <inttypes.h>
36 .BR " intmax_t quot;" " /* Quotient */"
37 .BR " intmax_t rem;" " /* Remainder */"
42 is the type of the value returned by the
43 .RB [[ l ] l ] div (3)
47 is the type of the value returned by the
51 C99 and later; POSIX.1-2001 and later.