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 SIZE_T 3type 2022-07-20 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
9 size_t, ssize_t \- count of bytes
15 .B #include <stddef.h>
17 .BR typedef " /* ... */ " size_t;
19 .B #include <sys/types.h>
21 .BR typedef " /* ... */ " ssize_t;
26 Used for a count of bytes.
27 It is the result of the
30 It is an unsigned integer type
31 capable of storing values in the range
36 Used for a count of bytes or an error indication.
37 It is a signed integer type
38 capable of storing values al least in the range
41 .SS Use with printf(3) and scanf(3)
44 The length modifier for
50 families of functions is
61 Glibc and most other implementations provide a length modifier for
67 families of functions,
81 on most implementations,
82 portable POSIX programs should avoid using it\(emfor example,
83 by converting the value to
85 and using its length modifier
115 POSIX.1-2001 and later.
118 POSIX.1-2001 and later.
123 The following headers also provide
154 The following headers also provide
178 .BR ptrdiff_t (3type)