intN_t - Online Linux Manual PageSection : 3type
Updated : 2023-01-31
Source : Linux man-pages 6.03

NAMEintN_t, int8_t, int16_t, int32_t, int64_t, uintN_t, uint8_t, uint16_t, uint32_t, uint64_t − fixed-width basic integer types

LIBRARYStandard C library (libc)

SYNOPSIS#include <stdint.h>typedef /* ... */ int8_t; typedef /* ... */ int16_t; typedef /* ... */ int32_t; typedef /* ... */ int64_t;typedef /* ... */ uint8_t; typedef /* ... */ uint16_t; typedef /* ... */ uint32_t; typedef /* ... */ uint64_t;#define INT8_WIDTH 8" #define INT16_WIDTH 16" #define INT32_WIDTH 32" #define INT64_WIDTH 64"#define UINT8_WIDTH 8" #define UINT16_WIDTH 16" #define UINT32_WIDTH 32" #define UINT64_WIDTH 64"#define INT8_MAX /* 2**(INT8_WIDTH - 1) - 1 */ #define INT16_MAX /* 2**(INT16_WIDTH - 1) - 1 */ #define INT32_MAX /* 2**(INT32_WIDTH - 1) - 1 */ #define INT64_MAX /* 2**(INT64_WIDTH - 1) - 1 */#define INT8_MIN /* - 2**(INT8_WIDTH - 1) */ #define INT16_MIN /* - 2**(INT16_WIDTH - 1) */ #define INT32_MIN /* - 2**(INT32_WIDTH - 1) */ #define INT64_MIN /* - 2**(INT64_WIDTH - 1) */#define UINT8_MAX /* 2**INT8_WIDTH - 1 */ #define UINT16_MAX /* 2**INT16_WIDTH - 1 */ #define UINT32_MAX /* 2**INT32_WIDTH - 1 */ #define UINT64_MAX /* 2**INT64_WIDTH - 1 */#define INT8_C(c) c ## /* ... */ #define INT16_C(c) c ## /* ... */ #define INT32_C(c) c ## /* ... */ #define INT64_C(c) c ## /* ... */#define UINT8_C(c) c ## /* ... */ #define UINT16_C(c) c ## /* ... */ #define UINT32_C(c) c ## /* ... */ #define UINT64_C(c) c ## /* ... */

DESCRIPTIONintN_t are signed integer types of a fixed width of exactly N bits, N being the value specified in its type name. They are be capable of storing values in the range [INTN_MIN, INTN_MAX], substituting N by the appropriate number. uintN_t are unsigned integer types of a fixed width of exactly N bits, N being the value specified in its type name. They are capable of storing values in the range [0, UINTN_MAX], substituting N by the appropriate number. According to POSIX, [u]int8_t, [u]int16_t, and [u]int32_t are required; [u]int64_t are only required in implementations that provide integer types with width 64; and all other types of this form are optional. The macros [U]INTN_WIDTH expand to the width in bits of these types (N). The macros [U]INTN_MAX expand to the maximum value that these types can hold. The macros INTN_MIN expand to the minimum value that these types can hold. The macros [U]INTN_C() expand their argument to an integer constant of type [u]intN_t. The length modifiers for the [u]intN_t types for the printf(3) family of functions are expanded by macros of the forms PRIdN, PRIiN, PRIuN, and PRIxN (defined in <inttypes.h>); resulting for example in %"PRId64" or %"PRIi64" for printing int64_t values. The length modifiers for the [u]intN_t types for the scanf(3) family of functions are expanded by macros of the forms SCNdN, SCNiN, SCNuN, and SCNxN, (defined in <inttypes.h>); resulting for example in %"SCNu8" or %"SCNx8" for scanning uint8_t values.

STANDARDSC99 and later; POSIX.1-2001 and later.

NOTESThe following header also provides these types: <inttypes.h>. <arpa/inet.h> also provides uint16_t and uint32_t.

SEE ALSOintmax_t(3type), intptr_t(3type), printf(3)
0
Johanes Gumabo
Data Size   :   16,323 byte
man-int64_t.3typeBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 239,180
Visitor ID   :     :  
Visitor IP   :   13.58.221.124   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.