aboutsummaryrefslogtreecommitdiffstats
path: root/man3/TYPE_MIN.3libsimple
blob: 6720465865a712252d508c47e26353a5bf398ab5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
.TH TYPE_MIN 3 2018-11-05 libsimple
.SH NAME
TYPE_MIN \- get smallest value for an integer type
.SH SYNOPSIS
.nf
#include <libsimple.h>

#ifndef TYPE_MIN
# define TYPE_MIN(type) /* implementation omitted */
#endif
.fi
.SH DESCRIPTION
The
.BR TYPE_MIN ()
macro assumes
.I type
is an integer type and expands to the smallest value
that can be stored in the
.IR TYPE ,
as a constant expression; however it is not suitable for
.BR #if .
.PP
The
.IB <libsimple.h>
heading contains macro constants, using the
.BR TYPE_MIN ()
macro, for the minimum value for multiple integer types:
.BR BLKCNT64_MIN ,
.BR BLKCNT_MIN ,
.BR BLKSIZE_MIN ,
.BR CC_MIN ,
.BR CLOCKID_MIN ,
.BR CLOCK_MIN ,
.BR DEV_MIN ,
.BR FSBLKCNT64_MIN ,
.BR FSBLKCNT_MIN ,
.BR FSFILCNT64_MIN ,
.BR FSFILCNT_MIN ,
.BR GID_MIN ,
.BR ID_MIN ,
.BR INO64_MIN ,
.BR INO_MIN ,
.BR KEY_MIN ,
.BR LOFF_MIN ,
.BR MODE_MIN ,
.BR NLINK_MIN ,
.BR OFF64_MIN ,
.BR OFF_MIN ,
.BR PID_MIN ,
.BR QUAD_MIN ,
.BR REGISTER_MIN ,
.BR RLIM64_MIN ,
.BR RLIM_MIN ,
.BR SOCKLEN_MIN ,
.BR SPEED_MIN ,
.BR SUSECONDS_MIN ,
.BR TCFLAG_MIN ,
.BR TIME_MIN ,
.BR UID_MIN ,
.BR USECONDS_MIN ,
and
.BR U_QUAD_MIN .
.SH EXAMPLES
None.
.SH APPLICATION USAGE
None.
.SH RATIONALE
None.
.SH FUTURE DIRECTIONS
None.
.SH NOTES
None.
.SH BUGS
None.
.SH SEE ALSO
.BR TYPE_MAX (3libsimple)
.BR INTSTRLEN (3libsimple)