On this page
stdint.h
Prev: string.h | Up: stdlib | Next: stddef.h
Rel: stdint, stdbool & limits Guide, c/builtins
Ref: cppreference — <stdint.h> / <inttypes.h>
Tags: #public #prog #c #stdlib #stdint #index
Include
#include <stdint.h>
Overview
Exact-width, pointer-sized, and maximum-width integer types plus portable printf format macros.
Core (#tier/core)
- int32_t — Exact 32-bit two's complement signed integer.
- int64_t — Exact 64-bit two's complement signed integer for timestamps, file sizes, and currency cents.
- uint8_t — Exact 8-bit unsigned byte (
0..255) for binary protocols and buffers. - uint32_t — Exact 32-bit unsigned integer for bitmasks, CRC32, and binary formats.
- uint64_t — Exact 64-bit unsigned integer for hashes (FNV-1a), bitsets, and monotonic counters.
- PRIu64 — Format specifier macros expanding to the platform-correct
printfmodifier for 64-bit integers.
Standard (#tier/standard)
Linked from
- tuts/c/builtins/int
- tuts/c/stdlib
- tuts/c/stdlib/stddef
- tuts/c/stdlib/stdint/int32_t
- tuts/c/stdlib/stdint/int64_t
- tuts/c/stdlib/stdint/PRIu64
- tuts/c/stdlib/stdint/SIZE_MAX
- tuts/c/stdlib/stdint/uint32_t
- tuts/c/stdlib/stdint/uint64_t
- tuts/c/stdlib/stdint/uint8_t
- tuts/c/stdlib/stdint/uintptr_t
- tuts/c/stdlib/string
- tuts/c/stdlib/string/strtok
Related notes
- tuts/c/stdlib Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/stddef Linked here; links to this page; shared tags: #c, #index, #prog, #stdlib
- tuts/c/stdlib/stdint/int32_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/int64_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/PRIu64 Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/SIZE_MAX Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/uint32_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/uint64_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/uint8_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib
- tuts/c/stdlib/stdint/uintptr_t Linked here; links to this page; shared tags: #c, #prog, #stdint, #stdlib