The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
inttypes.h
Go to the documentation of this file.
1#pragma once
2
3/**
4 * @file inttypes.h
5 * @brief printf formats for the stdint.h types.
6 */
7
8#include <stdint.h>
9
10// the length letters of int64_t and of pointers: long on x86_64
11#if __SIZEOF_LONG__ == 8
12#define __PRI64 "l"
13#define __PRIPTR "l"
14#else
15#define __PRI64 "ll"
16#define __PRIPTR ""
17#endif
18
19#define PRId8 "d"
20#define PRId16 "d"
21#define PRId32 "d"
22#define PRId64 __PRI64 "d"
23#define PRIu8 "u"
24#define PRIu16 "u"
25#define PRIu32 "u"
26#define PRIu64 __PRI64 "u"
27#define PRIx8 "x"
28#define PRIx16 "x"
29#define PRIx32 "x"
30#define PRIx64 __PRI64 "x"
31#define PRIX32 "X"
32#define PRIX64 __PRI64 "X"
33#define PRIdPTR __PRIPTR "d"
34#define PRIuPTR __PRIPTR "u"
35#define PRIxPTR __PRIPTR "x"
36#define PRIdMAX __PRI64 "d"
37#define PRIuMAX __PRI64 "u"
38
39intmax_t strtoimax(const char *s, char **end, int base);
40uintmax_t strtoumax(const char *s, char **end, int base);
uint32_t base
Definition gdt.c:1
intmax_t strtoimax(const char *s, char **end, int base)
uintmax_t strtoumax(const char *s, char **end, int base)
integer types of fixed width.
__UINTMAX_TYPE__ uintmax_t
Definition stdint.h:21
__INTMAX_TYPE__ intmax_t
Definition stdint.h:20