summaryrefslogtreecommitdiff
path: root/sysdeps/wordsize-64/inttypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/wordsize-64/inttypes.h')
-rw-r--r--sysdeps/wordsize-64/inttypes.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sysdeps/wordsize-64/inttypes.h b/sysdeps/wordsize-64/inttypes.h
index c62d516c4b..8ec8095620 100644
--- a/sysdeps/wordsize-64/inttypes.h
+++ b/sysdeps/wordsize-64/inttypes.h
@@ -313,20 +313,29 @@ typedef unsigned long int uint_fast64_t;
/* Macros for printing format specifiers. */
/* Decimal notation. */
+#define SCNd8 "hhd"
#define SCNd16 "hd"
#define SCNd32 "d"
#define SCNd64 "ld"
+#define SCNi8 "hhi"
#define SCNi16 "hi"
#define SCNi32 "i"
#define SCNi64 "li"
+#define SCNu8 "hhu"
+#define SCNu16 "hu"
+#define SCNu32 "u"
+#define SCNu64 "lu"
+
/* Octal notation. */
+#define SCNo8 "hho"
#define SCNo16 "ho"
#define SCNo32 "o"
#define SCNo64 "lo"
/* Hexadecimal notation. */
+#define SCNx8 "hhx"
#define SCNx16 "hx"
#define SCNx32 "x"
#define SCNx64 "lx"