summaryrefslogtreecommitdiff
path: root/src/inttypes
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
committerJakob Kaivo <jkk@ung.org>2019-02-08 18:42:39 -0500
commit7ef8a7379f7f7d09e71ccae2a0b688c3cd80423f (patch)
tree092ab0aed1769117fd7b28b8592f6f96b0e0d5af /src/inttypes
parent6acf19370e8adff79cd83b257d3f04aeaf2a59dd (diff)
merge sources into single tree
Diffstat (limited to 'src/inttypes')
-rw-r--r--src/inttypes/PRIX16.c6
-rw-r--r--src/inttypes/PRIX32.c6
-rw-r--r--src/inttypes/PRIX64.c6
-rw-r--r--src/inttypes/PRIX8.c6
-rw-r--r--src/inttypes/PRIXFAST16.c6
-rw-r--r--src/inttypes/PRIXFAST32.c6
-rw-r--r--src/inttypes/PRIXFAST64.c6
-rw-r--r--src/inttypes/PRIXFAST8.c6
-rw-r--r--src/inttypes/PRIXLEAST16.c6
-rw-r--r--src/inttypes/PRIXLEAST32.c6
-rw-r--r--src/inttypes/PRIXLEAST64.c6
-rw-r--r--src/inttypes/PRIXLEAST8.c6
-rw-r--r--src/inttypes/PRIXMAX.c6
-rw-r--r--src/inttypes/PRIXPTR.c10
-rw-r--r--src/inttypes/PRId16.c6
-rw-r--r--src/inttypes/PRId32.c6
-rw-r--r--src/inttypes/PRId64.c6
-rw-r--r--src/inttypes/PRId8.c6
-rw-r--r--src/inttypes/PRIdFAST16.c6
-rw-r--r--src/inttypes/PRIdFAST32.c6
-rw-r--r--src/inttypes/PRIdFAST64.c6
-rw-r--r--src/inttypes/PRIdFAST8.c6
-rw-r--r--src/inttypes/PRIdLEAST16.c6
-rw-r--r--src/inttypes/PRIdLEAST32.c6
-rw-r--r--src/inttypes/PRIdLEAST64.c6
-rw-r--r--src/inttypes/PRIdLEAST8.c6
-rw-r--r--src/inttypes/PRIdMAX.c6
-rw-r--r--src/inttypes/PRIdPTR.c10
-rw-r--r--src/inttypes/PRIi16.c6
-rw-r--r--src/inttypes/PRIi32.c6
-rw-r--r--src/inttypes/PRIi64.c6
-rw-r--r--src/inttypes/PRIi8.c6
-rw-r--r--src/inttypes/PRIiFAST16.c6
-rw-r--r--src/inttypes/PRIiFAST32.c6
-rw-r--r--src/inttypes/PRIiFAST64.c6
-rw-r--r--src/inttypes/PRIiFAST8.c6
-rw-r--r--src/inttypes/PRIiLEAST16.c6
-rw-r--r--src/inttypes/PRIiLEAST32.c6
-rw-r--r--src/inttypes/PRIiLEAST64.c6
-rw-r--r--src/inttypes/PRIiLEAST8.c6
-rw-r--r--src/inttypes/PRIiMAX.c6
-rw-r--r--src/inttypes/PRIiPTR.c10
-rw-r--r--src/inttypes/PRIo16.c6
-rw-r--r--src/inttypes/PRIo32.c6
-rw-r--r--src/inttypes/PRIo64.c6
-rw-r--r--src/inttypes/PRIo8.c6
-rw-r--r--src/inttypes/PRIoFAST16.c6
-rw-r--r--src/inttypes/PRIoFAST32.c6
-rw-r--r--src/inttypes/PRIoFAST64.c6
-rw-r--r--src/inttypes/PRIoFAST8.c6
-rw-r--r--src/inttypes/PRIoLEAST16.c6
-rw-r--r--src/inttypes/PRIoLEAST32.c6
-rw-r--r--src/inttypes/PRIoLEAST64.c6
-rw-r--r--src/inttypes/PRIoLEAST8.c6
-rw-r--r--src/inttypes/PRIoMAX.c6
-rw-r--r--src/inttypes/PRIoPTR.c10
-rw-r--r--src/inttypes/PRIu16.c6
-rw-r--r--src/inttypes/PRIu32.c6
-rw-r--r--src/inttypes/PRIu64.c6
-rw-r--r--src/inttypes/PRIu8.c6
-rw-r--r--src/inttypes/PRIuFAST16.c6
-rw-r--r--src/inttypes/PRIuFAST32.c6
-rw-r--r--src/inttypes/PRIuFAST64.c6
-rw-r--r--src/inttypes/PRIuFAST8.c6
-rw-r--r--src/inttypes/PRIuLEAST16.c6
-rw-r--r--src/inttypes/PRIuLEAST32.c6
-rw-r--r--src/inttypes/PRIuLEAST64.c6
-rw-r--r--src/inttypes/PRIuLEAST8.c6
-rw-r--r--src/inttypes/PRIuMAX.c6
-rw-r--r--src/inttypes/PRIuPTR.c10
-rw-r--r--src/inttypes/PRIx16.c6
-rw-r--r--src/inttypes/PRIx32.c6
-rw-r--r--src/inttypes/PRIx64.c6
-rw-r--r--src/inttypes/PRIx8.c6
-rw-r--r--src/inttypes/PRIxFAST16.c6
-rw-r--r--src/inttypes/PRIxFAST32.c6
-rw-r--r--src/inttypes/PRIxFAST64.c6
-rw-r--r--src/inttypes/PRIxFAST8.c6
-rw-r--r--src/inttypes/PRIxLEAST16.c6
-rw-r--r--src/inttypes/PRIxLEAST32.c6
-rw-r--r--src/inttypes/PRIxLEAST64.c6
-rw-r--r--src/inttypes/PRIxLEAST8.c6
-rw-r--r--src/inttypes/PRIxMAX.c6
-rw-r--r--src/inttypes/PRIxPTR.c10
-rw-r--r--src/inttypes/SCNX16.c6
-rw-r--r--src/inttypes/SCNX32.c6
-rw-r--r--src/inttypes/SCNX64.c6
-rw-r--r--src/inttypes/SCNX8.c6
-rw-r--r--src/inttypes/SCNXFAST16.c6
-rw-r--r--src/inttypes/SCNXFAST32.c6
-rw-r--r--src/inttypes/SCNXFAST64.c6
-rw-r--r--src/inttypes/SCNXFAST8.c6
-rw-r--r--src/inttypes/SCNXLEAST16.c6
-rw-r--r--src/inttypes/SCNXLEAST32.c6
-rw-r--r--src/inttypes/SCNXLEAST64.c6
-rw-r--r--src/inttypes/SCNXLEAST8.c6
-rw-r--r--src/inttypes/SCNXMAX.c6
-rw-r--r--src/inttypes/SCNXPTR.c10
-rw-r--r--src/inttypes/SCNd16.c6
-rw-r--r--src/inttypes/SCNd32.c6
-rw-r--r--src/inttypes/SCNd64.c6
-rw-r--r--src/inttypes/SCNd8.c6
-rw-r--r--src/inttypes/SCNdFAST16.c6
-rw-r--r--src/inttypes/SCNdFAST32.c6
-rw-r--r--src/inttypes/SCNdFAST64.c6
-rw-r--r--src/inttypes/SCNdFAST8.c6
-rw-r--r--src/inttypes/SCNdLEAST16.c6
-rw-r--r--src/inttypes/SCNdLEAST32.c6
-rw-r--r--src/inttypes/SCNdLEAST64.c6
-rw-r--r--src/inttypes/SCNdLEAST8.c6
-rw-r--r--src/inttypes/SCNdMAX.c6
-rw-r--r--src/inttypes/SCNdPTR.c10
-rw-r--r--src/inttypes/SCNi16.c6
-rw-r--r--src/inttypes/SCNi32.c6
-rw-r--r--src/inttypes/SCNi64.c6
-rw-r--r--src/inttypes/SCNi8.c6
-rw-r--r--src/inttypes/SCNiFAST16.c6
-rw-r--r--src/inttypes/SCNiFAST32.c6
-rw-r--r--src/inttypes/SCNiFAST64.c6
-rw-r--r--src/inttypes/SCNiFAST8.c6
-rw-r--r--src/inttypes/SCNiLEAST16.c6
-rw-r--r--src/inttypes/SCNiLEAST32.c6
-rw-r--r--src/inttypes/SCNiLEAST64.c6
-rw-r--r--src/inttypes/SCNiLEAST8.c6
-rw-r--r--src/inttypes/SCNiMAX.c6
-rw-r--r--src/inttypes/SCNiPTR.c10
-rw-r--r--src/inttypes/SCNo16.c6
-rw-r--r--src/inttypes/SCNo32.c6
-rw-r--r--src/inttypes/SCNo64.c6
-rw-r--r--src/inttypes/SCNo8.c6
-rw-r--r--src/inttypes/SCNoFAST16.c6
-rw-r--r--src/inttypes/SCNoFAST32.c6
-rw-r--r--src/inttypes/SCNoFAST64.c6
-rw-r--r--src/inttypes/SCNoFAST8.c6
-rw-r--r--src/inttypes/SCNoLEAST16.c6
-rw-r--r--src/inttypes/SCNoLEAST32.c6
-rw-r--r--src/inttypes/SCNoLEAST64.c6
-rw-r--r--src/inttypes/SCNoLEAST8.c6
-rw-r--r--src/inttypes/SCNoMAX.c6
-rw-r--r--src/inttypes/SCNoPTR.c10
-rw-r--r--src/inttypes/SCNu16.c6
-rw-r--r--src/inttypes/SCNu32.c6
-rw-r--r--src/inttypes/SCNu64.c6
-rw-r--r--src/inttypes/SCNu8.c6
-rw-r--r--src/inttypes/SCNuFAST16.c6
-rw-r--r--src/inttypes/SCNuFAST32.c6
-rw-r--r--src/inttypes/SCNuFAST64.c6
-rw-r--r--src/inttypes/SCNuFAST8.c6
-rw-r--r--src/inttypes/SCNuLEAST16.c6
-rw-r--r--src/inttypes/SCNuLEAST32.c6
-rw-r--r--src/inttypes/SCNuLEAST64.c6
-rw-r--r--src/inttypes/SCNuLEAST8.c6
-rw-r--r--src/inttypes/SCNuMAX.c6
-rw-r--r--src/inttypes/SCNuPTR.c10
-rw-r--r--src/inttypes/SCNx16.c6
-rw-r--r--src/inttypes/SCNx32.c6
-rw-r--r--src/inttypes/SCNx64.c6
-rw-r--r--src/inttypes/SCNx8.c6
-rw-r--r--src/inttypes/SCNxFAST16.c6
-rw-r--r--src/inttypes/SCNxFAST32.c6
-rw-r--r--src/inttypes/SCNxFAST64.c6
-rw-r--r--src/inttypes/SCNxFAST8.c6
-rw-r--r--src/inttypes/SCNxLEAST16.c6
-rw-r--r--src/inttypes/SCNxLEAST32.c6
-rw-r--r--src/inttypes/SCNxLEAST64.c6
-rw-r--r--src/inttypes/SCNxLEAST8.c6
-rw-r--r--src/inttypes/SCNxMAX.c6
-rw-r--r--src/inttypes/SCNxPTR.c10
-rw-r--r--src/inttypes/imaxabs.c27
-rw-r--r--src/inttypes/imaxdiv.c19
-rw-r--r--src/inttypes/imaxdiv_t.c10
-rw-r--r--src/inttypes/stdint.ref6
-rw-r--r--src/inttypes/strtoimax.c21
-rw-r--r--src/inttypes/strtoumax.c17
-rw-r--r--src/inttypes/wcstoimax.c21
-rw-r--r--src/inttypes/wcstoumax.c17
176 files changed, 1194 insertions, 0 deletions
diff --git a/src/inttypes/PRIX16.c b/src/inttypes/PRIX16.c
new file mode 100644
index 00000000..43037496
--- /dev/null
+++ b/src/inttypes/PRIX16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIX16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIX32.c b/src/inttypes/PRIX32.c
new file mode 100644
index 00000000..4e6a4537
--- /dev/null
+++ b/src/inttypes/PRIX32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIX32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIX64.c b/src/inttypes/PRIX64.c
new file mode 100644
index 00000000..a3f89758
--- /dev/null
+++ b/src/inttypes/PRIX64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIX64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIX8.c b/src/inttypes/PRIX8.c
new file mode 100644
index 00000000..ab14eed0
--- /dev/null
+++ b/src/inttypes/PRIX8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIX8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXFAST16.c b/src/inttypes/PRIXFAST16.c
new file mode 100644
index 00000000..fd25c10b
--- /dev/null
+++ b/src/inttypes/PRIXFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXFAST16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXFAST32.c b/src/inttypes/PRIXFAST32.c
new file mode 100644
index 00000000..35089f43
--- /dev/null
+++ b/src/inttypes/PRIXFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXFAST32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXFAST64.c b/src/inttypes/PRIXFAST64.c
new file mode 100644
index 00000000..4020cf9d
--- /dev/null
+++ b/src/inttypes/PRIXFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXFAST64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXFAST8.c b/src/inttypes/PRIXFAST8.c
new file mode 100644
index 00000000..de0844f1
--- /dev/null
+++ b/src/inttypes/PRIXFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXFAST8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXLEAST16.c b/src/inttypes/PRIXLEAST16.c
new file mode 100644
index 00000000..be53a993
--- /dev/null
+++ b/src/inttypes/PRIXLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXLEAST16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXLEAST32.c b/src/inttypes/PRIXLEAST32.c
new file mode 100644
index 00000000..cea7217a
--- /dev/null
+++ b/src/inttypes/PRIXLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXLEAST32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXLEAST64.c b/src/inttypes/PRIXLEAST64.c
new file mode 100644
index 00000000..0d5c7ace
--- /dev/null
+++ b/src/inttypes/PRIXLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXLEAST64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXLEAST8.c b/src/inttypes/PRIXLEAST8.c
new file mode 100644
index 00000000..2cc09910
--- /dev/null
+++ b/src/inttypes/PRIXLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXLEAST8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXMAX.c b/src/inttypes/PRIXMAX.c
new file mode 100644
index 00000000..8d5a3be1
--- /dev/null
+++ b/src/inttypes/PRIXMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIXMAX "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIXPTR.c b/src/inttypes/PRIXPTR.c
new file mode 100644
index 00000000..0662addf
--- /dev/null
+++ b/src/inttypes/PRIXPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIXPTR "llX"
+#else
+#define PRIXPTR "lX"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRId16.c b/src/inttypes/PRId16.c
new file mode 100644
index 00000000..68f20b10
--- /dev/null
+++ b/src/inttypes/PRId16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRId16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRId32.c b/src/inttypes/PRId32.c
new file mode 100644
index 00000000..d6523c32
--- /dev/null
+++ b/src/inttypes/PRId32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRId32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRId64.c b/src/inttypes/PRId64.c
new file mode 100644
index 00000000..5f3a1b21
--- /dev/null
+++ b/src/inttypes/PRId64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRId64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRId8.c b/src/inttypes/PRId8.c
new file mode 100644
index 00000000..161e822e
--- /dev/null
+++ b/src/inttypes/PRId8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRId8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdFAST16.c b/src/inttypes/PRIdFAST16.c
new file mode 100644
index 00000000..794ed0bb
--- /dev/null
+++ b/src/inttypes/PRIdFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdFAST16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdFAST32.c b/src/inttypes/PRIdFAST32.c
new file mode 100644
index 00000000..29ccc501
--- /dev/null
+++ b/src/inttypes/PRIdFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdFAST32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdFAST64.c b/src/inttypes/PRIdFAST64.c
new file mode 100644
index 00000000..6e7b2682
--- /dev/null
+++ b/src/inttypes/PRIdFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdFAST64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdFAST8.c b/src/inttypes/PRIdFAST8.c
new file mode 100644
index 00000000..b13303ef
--- /dev/null
+++ b/src/inttypes/PRIdFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdFAST8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdLEAST16.c b/src/inttypes/PRIdLEAST16.c
new file mode 100644
index 00000000..ddfc428f
--- /dev/null
+++ b/src/inttypes/PRIdLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdLEAST16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdLEAST32.c b/src/inttypes/PRIdLEAST32.c
new file mode 100644
index 00000000..a507ddea
--- /dev/null
+++ b/src/inttypes/PRIdLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdLEAST32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdLEAST64.c b/src/inttypes/PRIdLEAST64.c
new file mode 100644
index 00000000..5f9847cf
--- /dev/null
+++ b/src/inttypes/PRIdLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdLEAST64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdLEAST8.c b/src/inttypes/PRIdLEAST8.c
new file mode 100644
index 00000000..7de17746
--- /dev/null
+++ b/src/inttypes/PRIdLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdLEAST8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdMAX.c b/src/inttypes/PRIdMAX.c
new file mode 100644
index 00000000..726e0b06
--- /dev/null
+++ b/src/inttypes/PRIdMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIdMAX "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIdPTR.c b/src/inttypes/PRIdPTR.c
new file mode 100644
index 00000000..cb7ae693
--- /dev/null
+++ b/src/inttypes/PRIdPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIdPTR "lld"
+#else
+#define PRIdPTR "ld"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIi16.c b/src/inttypes/PRIi16.c
new file mode 100644
index 00000000..8d965845
--- /dev/null
+++ b/src/inttypes/PRIi16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIi16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIi32.c b/src/inttypes/PRIi32.c
new file mode 100644
index 00000000..cafacca4
--- /dev/null
+++ b/src/inttypes/PRIi32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIi32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIi64.c b/src/inttypes/PRIi64.c
new file mode 100644
index 00000000..8a803ccb
--- /dev/null
+++ b/src/inttypes/PRIi64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIi64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIi8.c b/src/inttypes/PRIi8.c
new file mode 100644
index 00000000..68e7cf09
--- /dev/null
+++ b/src/inttypes/PRIi8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIi8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiFAST16.c b/src/inttypes/PRIiFAST16.c
new file mode 100644
index 00000000..859a1b9b
--- /dev/null
+++ b/src/inttypes/PRIiFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiFAST16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiFAST32.c b/src/inttypes/PRIiFAST32.c
new file mode 100644
index 00000000..133a3fff
--- /dev/null
+++ b/src/inttypes/PRIiFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiFAST32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiFAST64.c b/src/inttypes/PRIiFAST64.c
new file mode 100644
index 00000000..e4787e14
--- /dev/null
+++ b/src/inttypes/PRIiFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiFAST64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiFAST8.c b/src/inttypes/PRIiFAST8.c
new file mode 100644
index 00000000..068c4a14
--- /dev/null
+++ b/src/inttypes/PRIiFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiFAST8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiLEAST16.c b/src/inttypes/PRIiLEAST16.c
new file mode 100644
index 00000000..6f5a8953
--- /dev/null
+++ b/src/inttypes/PRIiLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiLEAST16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiLEAST32.c b/src/inttypes/PRIiLEAST32.c
new file mode 100644
index 00000000..213a3c38
--- /dev/null
+++ b/src/inttypes/PRIiLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiLEAST32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiLEAST64.c b/src/inttypes/PRIiLEAST64.c
new file mode 100644
index 00000000..60e0bacc
--- /dev/null
+++ b/src/inttypes/PRIiLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiLEAST64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiLEAST8.c b/src/inttypes/PRIiLEAST8.c
new file mode 100644
index 00000000..f34186ed
--- /dev/null
+++ b/src/inttypes/PRIiLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiLEAST8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiMAX.c b/src/inttypes/PRIiMAX.c
new file mode 100644
index 00000000..d6ef5b6b
--- /dev/null
+++ b/src/inttypes/PRIiMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIiMAX "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIiPTR.c b/src/inttypes/PRIiPTR.c
new file mode 100644
index 00000000..c13ae15f
--- /dev/null
+++ b/src/inttypes/PRIiPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIiPTR "lli"
+#else
+#define PRIiPTR "li"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIo16.c b/src/inttypes/PRIo16.c
new file mode 100644
index 00000000..316dbc4a
--- /dev/null
+++ b/src/inttypes/PRIo16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIo16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIo32.c b/src/inttypes/PRIo32.c
new file mode 100644
index 00000000..9b3f375e
--- /dev/null
+++ b/src/inttypes/PRIo32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIo32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIo64.c b/src/inttypes/PRIo64.c
new file mode 100644
index 00000000..b455e7d3
--- /dev/null
+++ b/src/inttypes/PRIo64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIo64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIo8.c b/src/inttypes/PRIo8.c
new file mode 100644
index 00000000..fc205050
--- /dev/null
+++ b/src/inttypes/PRIo8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIo8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoFAST16.c b/src/inttypes/PRIoFAST16.c
new file mode 100644
index 00000000..27c5deac
--- /dev/null
+++ b/src/inttypes/PRIoFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoFAST16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoFAST32.c b/src/inttypes/PRIoFAST32.c
new file mode 100644
index 00000000..4a54eb4d
--- /dev/null
+++ b/src/inttypes/PRIoFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoFAST32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoFAST64.c b/src/inttypes/PRIoFAST64.c
new file mode 100644
index 00000000..0655405c
--- /dev/null
+++ b/src/inttypes/PRIoFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoFAST64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoFAST8.c b/src/inttypes/PRIoFAST8.c
new file mode 100644
index 00000000..1d285e5d
--- /dev/null
+++ b/src/inttypes/PRIoFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoFAST8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoLEAST16.c b/src/inttypes/PRIoLEAST16.c
new file mode 100644
index 00000000..cbf8710c
--- /dev/null
+++ b/src/inttypes/PRIoLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoLEAST16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoLEAST32.c b/src/inttypes/PRIoLEAST32.c
new file mode 100644
index 00000000..7716e34d
--- /dev/null
+++ b/src/inttypes/PRIoLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoLEAST32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoLEAST64.c b/src/inttypes/PRIoLEAST64.c
new file mode 100644
index 00000000..2d04aa30
--- /dev/null
+++ b/src/inttypes/PRIoLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoLEAST64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoLEAST8.c b/src/inttypes/PRIoLEAST8.c
new file mode 100644
index 00000000..9d32aa6c
--- /dev/null
+++ b/src/inttypes/PRIoLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoLEAST8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoMAX.c b/src/inttypes/PRIoMAX.c
new file mode 100644
index 00000000..10c50fb0
--- /dev/null
+++ b/src/inttypes/PRIoMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIoMAX "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIoPTR.c b/src/inttypes/PRIoPTR.c
new file mode 100644
index 00000000..c5d504d5
--- /dev/null
+++ b/src/inttypes/PRIoPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIoPTR "llo"
+#else
+#define PRIoPTR "lo"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIu16.c b/src/inttypes/PRIu16.c
new file mode 100644
index 00000000..604ce7ce
--- /dev/null
+++ b/src/inttypes/PRIu16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIu16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIu32.c b/src/inttypes/PRIu32.c
new file mode 100644
index 00000000..0c34611d
--- /dev/null
+++ b/src/inttypes/PRIu32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIu32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIu64.c b/src/inttypes/PRIu64.c
new file mode 100644
index 00000000..8e600238
--- /dev/null
+++ b/src/inttypes/PRIu64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIu64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIu8.c b/src/inttypes/PRIu8.c
new file mode 100644
index 00000000..57dde7bc
--- /dev/null
+++ b/src/inttypes/PRIu8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIu8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuFAST16.c b/src/inttypes/PRIuFAST16.c
new file mode 100644
index 00000000..ca73dc01
--- /dev/null
+++ b/src/inttypes/PRIuFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuFAST16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuFAST32.c b/src/inttypes/PRIuFAST32.c
new file mode 100644
index 00000000..e616578e
--- /dev/null
+++ b/src/inttypes/PRIuFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuFAST32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuFAST64.c b/src/inttypes/PRIuFAST64.c
new file mode 100644
index 00000000..256089cd
--- /dev/null
+++ b/src/inttypes/PRIuFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuFAST64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuFAST8.c b/src/inttypes/PRIuFAST8.c
new file mode 100644
index 00000000..a6a2b291
--- /dev/null
+++ b/src/inttypes/PRIuFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuFAST8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuLEAST16.c b/src/inttypes/PRIuLEAST16.c
new file mode 100644
index 00000000..35b5ca0e
--- /dev/null
+++ b/src/inttypes/PRIuLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuLEAST16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuLEAST32.c b/src/inttypes/PRIuLEAST32.c
new file mode 100644
index 00000000..f8a8b5aa
--- /dev/null
+++ b/src/inttypes/PRIuLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuLEAST32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuLEAST64.c b/src/inttypes/PRIuLEAST64.c
new file mode 100644
index 00000000..f9b3ba9a
--- /dev/null
+++ b/src/inttypes/PRIuLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuLEAST64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuLEAST8.c b/src/inttypes/PRIuLEAST8.c
new file mode 100644
index 00000000..c88eaf46
--- /dev/null
+++ b/src/inttypes/PRIuLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuLEAST8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuMAX.c b/src/inttypes/PRIuMAX.c
new file mode 100644
index 00000000..4f097cdc
--- /dev/null
+++ b/src/inttypes/PRIuMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIuMAX "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIuPTR.c b/src/inttypes/PRIuPTR.c
new file mode 100644
index 00000000..23c8ab1f
--- /dev/null
+++ b/src/inttypes/PRIuPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIuPTR "llu"
+#else
+#define PRIuPTR "lu"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIx16.c b/src/inttypes/PRIx16.c
new file mode 100644
index 00000000..fe401ede
--- /dev/null
+++ b/src/inttypes/PRIx16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIx16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIx32.c b/src/inttypes/PRIx32.c
new file mode 100644
index 00000000..a666bfb8
--- /dev/null
+++ b/src/inttypes/PRIx32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIx32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIx64.c b/src/inttypes/PRIx64.c
new file mode 100644
index 00000000..7eda1a13
--- /dev/null
+++ b/src/inttypes/PRIx64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIx64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIx8.c b/src/inttypes/PRIx8.c
new file mode 100644
index 00000000..af06ea27
--- /dev/null
+++ b/src/inttypes/PRIx8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIx8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxFAST16.c b/src/inttypes/PRIxFAST16.c
new file mode 100644
index 00000000..f2769064
--- /dev/null
+++ b/src/inttypes/PRIxFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxFAST16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxFAST32.c b/src/inttypes/PRIxFAST32.c
new file mode 100644
index 00000000..1ef38020
--- /dev/null
+++ b/src/inttypes/PRIxFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxFAST32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxFAST64.c b/src/inttypes/PRIxFAST64.c
new file mode 100644
index 00000000..299de94a
--- /dev/null
+++ b/src/inttypes/PRIxFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxFAST64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxFAST8.c b/src/inttypes/PRIxFAST8.c
new file mode 100644
index 00000000..d6430971
--- /dev/null
+++ b/src/inttypes/PRIxFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxFAST8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxLEAST16.c b/src/inttypes/PRIxLEAST16.c
new file mode 100644
index 00000000..570c7d33
--- /dev/null
+++ b/src/inttypes/PRIxLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxLEAST16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxLEAST32.c b/src/inttypes/PRIxLEAST32.c
new file mode 100644
index 00000000..f6286296
--- /dev/null
+++ b/src/inttypes/PRIxLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxLEAST32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxLEAST64.c b/src/inttypes/PRIxLEAST64.c
new file mode 100644
index 00000000..cf0ccf8a
--- /dev/null
+++ b/src/inttypes/PRIxLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxLEAST64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxLEAST8.c b/src/inttypes/PRIxLEAST8.c
new file mode 100644
index 00000000..fdff01e7
--- /dev/null
+++ b/src/inttypes/PRIxLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxLEAST8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxMAX.c b/src/inttypes/PRIxMAX.c
new file mode 100644
index 00000000..e5b026b1
--- /dev/null
+++ b/src/inttypes/PRIxMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define PRIxMAX "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/PRIxPTR.c b/src/inttypes/PRIxPTR.c
new file mode 100644
index 00000000..1ff9a6d3
--- /dev/null
+++ b/src/inttypes/PRIxPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define PRIxPTR "llx"
+#else
+#define PRIxPTR "lx"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNX16.c b/src/inttypes/SCNX16.c
new file mode 100644
index 00000000..875d0f62
--- /dev/null
+++ b/src/inttypes/SCNX16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNX16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNX32.c b/src/inttypes/SCNX32.c
new file mode 100644
index 00000000..ae82ba02
--- /dev/null
+++ b/src/inttypes/SCNX32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNX32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNX64.c b/src/inttypes/SCNX64.c
new file mode 100644
index 00000000..b05e6885
--- /dev/null
+++ b/src/inttypes/SCNX64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNX64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNX8.c b/src/inttypes/SCNX8.c
new file mode 100644
index 00000000..4a3d0bca
--- /dev/null
+++ b/src/inttypes/SCNX8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNX8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXFAST16.c b/src/inttypes/SCNXFAST16.c
new file mode 100644
index 00000000..e4824a7b
--- /dev/null
+++ b/src/inttypes/SCNXFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXFAST16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXFAST32.c b/src/inttypes/SCNXFAST32.c
new file mode 100644
index 00000000..98065c38
--- /dev/null
+++ b/src/inttypes/SCNXFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXFAST32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXFAST64.c b/src/inttypes/SCNXFAST64.c
new file mode 100644
index 00000000..3c74d976
--- /dev/null
+++ b/src/inttypes/SCNXFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXFAST64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXFAST8.c b/src/inttypes/SCNXFAST8.c
new file mode 100644
index 00000000..1509e276
--- /dev/null
+++ b/src/inttypes/SCNXFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXFAST8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXLEAST16.c b/src/inttypes/SCNXLEAST16.c
new file mode 100644
index 00000000..0e02bbd2
--- /dev/null
+++ b/src/inttypes/SCNXLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXLEAST16 "hX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXLEAST32.c b/src/inttypes/SCNXLEAST32.c
new file mode 100644
index 00000000..30731e1c
--- /dev/null
+++ b/src/inttypes/SCNXLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXLEAST32 "lX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXLEAST64.c b/src/inttypes/SCNXLEAST64.c
new file mode 100644
index 00000000..266e8aa0
--- /dev/null
+++ b/src/inttypes/SCNXLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXLEAST64 "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXLEAST8.c b/src/inttypes/SCNXLEAST8.c
new file mode 100644
index 00000000..59c86e16
--- /dev/null
+++ b/src/inttypes/SCNXLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXLEAST8 "hhX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXMAX.c b/src/inttypes/SCNXMAX.c
new file mode 100644
index 00000000..b5490147
--- /dev/null
+++ b/src/inttypes/SCNXMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNXMAX "llX"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNXPTR.c b/src/inttypes/SCNXPTR.c
new file mode 100644
index 00000000..7df00b29
--- /dev/null
+++ b/src/inttypes/SCNXPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNXPTR "llX"
+#else
+#define SCNXPTR "lX"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNd16.c b/src/inttypes/SCNd16.c
new file mode 100644
index 00000000..f8e6abdd
--- /dev/null
+++ b/src/inttypes/SCNd16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNd16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNd32.c b/src/inttypes/SCNd32.c
new file mode 100644
index 00000000..ede6aedf
--- /dev/null
+++ b/src/inttypes/SCNd32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNd32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNd64.c b/src/inttypes/SCNd64.c
new file mode 100644
index 00000000..72782571
--- /dev/null
+++ b/src/inttypes/SCNd64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNd64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNd8.c b/src/inttypes/SCNd8.c
new file mode 100644
index 00000000..b009a790
--- /dev/null
+++ b/src/inttypes/SCNd8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNd8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdFAST16.c b/src/inttypes/SCNdFAST16.c
new file mode 100644
index 00000000..4df0ab71
--- /dev/null
+++ b/src/inttypes/SCNdFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdFAST16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdFAST32.c b/src/inttypes/SCNdFAST32.c
new file mode 100644
index 00000000..4a4d6642
--- /dev/null
+++ b/src/inttypes/SCNdFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdFAST32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdFAST64.c b/src/inttypes/SCNdFAST64.c
new file mode 100644
index 00000000..b1c62250
--- /dev/null
+++ b/src/inttypes/SCNdFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdFAST64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdFAST8.c b/src/inttypes/SCNdFAST8.c
new file mode 100644
index 00000000..edf1e334
--- /dev/null
+++ b/src/inttypes/SCNdFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdFAST8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdLEAST16.c b/src/inttypes/SCNdLEAST16.c
new file mode 100644
index 00000000..0cd349bd
--- /dev/null
+++ b/src/inttypes/SCNdLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdLEAST16 "hd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdLEAST32.c b/src/inttypes/SCNdLEAST32.c
new file mode 100644
index 00000000..881b6c06
--- /dev/null
+++ b/src/inttypes/SCNdLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdLEAST32 "ld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdLEAST64.c b/src/inttypes/SCNdLEAST64.c
new file mode 100644
index 00000000..67cdad99
--- /dev/null
+++ b/src/inttypes/SCNdLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdLEAST64 "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdLEAST8.c b/src/inttypes/SCNdLEAST8.c
new file mode 100644
index 00000000..cfde7860
--- /dev/null
+++ b/src/inttypes/SCNdLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdLEAST8 "hhd"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdMAX.c b/src/inttypes/SCNdMAX.c
new file mode 100644
index 00000000..edeb1f6a
--- /dev/null
+++ b/src/inttypes/SCNdMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNdMAX "lld"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNdPTR.c b/src/inttypes/SCNdPTR.c
new file mode 100644
index 00000000..c0c61d0a
--- /dev/null
+++ b/src/inttypes/SCNdPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNdPTR "lld"
+#else
+#define SCNdPTR "ld"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNi16.c b/src/inttypes/SCNi16.c
new file mode 100644
index 00000000..c262b47d
--- /dev/null
+++ b/src/inttypes/SCNi16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNi16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNi32.c b/src/inttypes/SCNi32.c
new file mode 100644
index 00000000..bb3ecb30
--- /dev/null
+++ b/src/inttypes/SCNi32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNi32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNi64.c b/src/inttypes/SCNi64.c
new file mode 100644
index 00000000..f6d2e3ec
--- /dev/null
+++ b/src/inttypes/SCNi64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNi64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNi8.c b/src/inttypes/SCNi8.c
new file mode 100644
index 00000000..f9a783e4
--- /dev/null
+++ b/src/inttypes/SCNi8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNi8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiFAST16.c b/src/inttypes/SCNiFAST16.c
new file mode 100644
index 00000000..926936f1
--- /dev/null
+++ b/src/inttypes/SCNiFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiFAST16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiFAST32.c b/src/inttypes/SCNiFAST32.c
new file mode 100644
index 00000000..342cd571
--- /dev/null
+++ b/src/inttypes/SCNiFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiFAST32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiFAST64.c b/src/inttypes/SCNiFAST64.c
new file mode 100644
index 00000000..ef036928
--- /dev/null
+++ b/src/inttypes/SCNiFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiFAST64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiFAST8.c b/src/inttypes/SCNiFAST8.c
new file mode 100644
index 00000000..439ceeac
--- /dev/null
+++ b/src/inttypes/SCNiFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiFAST8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiLEAST16.c b/src/inttypes/SCNiLEAST16.c
new file mode 100644
index 00000000..fc6310ce
--- /dev/null
+++ b/src/inttypes/SCNiLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiLEAST16 "hi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiLEAST32.c b/src/inttypes/SCNiLEAST32.c
new file mode 100644
index 00000000..7f1c9f44
--- /dev/null
+++ b/src/inttypes/SCNiLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiLEAST32 "li"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiLEAST64.c b/src/inttypes/SCNiLEAST64.c
new file mode 100644
index 00000000..ffcd8df6
--- /dev/null
+++ b/src/inttypes/SCNiLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiLEAST64 "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiLEAST8.c b/src/inttypes/SCNiLEAST8.c
new file mode 100644
index 00000000..099adc7c
--- /dev/null
+++ b/src/inttypes/SCNiLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiLEAST8 "hhi"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiMAX.c b/src/inttypes/SCNiMAX.c
new file mode 100644
index 00000000..b6ef4cb9
--- /dev/null
+++ b/src/inttypes/SCNiMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNiMAX "lli"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNiPTR.c b/src/inttypes/SCNiPTR.c
new file mode 100644
index 00000000..50cb754a
--- /dev/null
+++ b/src/inttypes/SCNiPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNiPTR "lli"
+#else
+#define SCNiPTR "li"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNo16.c b/src/inttypes/SCNo16.c
new file mode 100644
index 00000000..173436ae
--- /dev/null
+++ b/src/inttypes/SCNo16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNo16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNo32.c b/src/inttypes/SCNo32.c
new file mode 100644
index 00000000..bcb9fa2e
--- /dev/null
+++ b/src/inttypes/SCNo32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNo32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNo64.c b/src/inttypes/SCNo64.c
new file mode 100644
index 00000000..6318248e
--- /dev/null
+++ b/src/inttypes/SCNo64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNo64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNo8.c b/src/inttypes/SCNo8.c
new file mode 100644
index 00000000..3eaee589
--- /dev/null
+++ b/src/inttypes/SCNo8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNo8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoFAST16.c b/src/inttypes/SCNoFAST16.c
new file mode 100644
index 00000000..ee2b885f
--- /dev/null
+++ b/src/inttypes/SCNoFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoFAST16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoFAST32.c b/src/inttypes/SCNoFAST32.c
new file mode 100644
index 00000000..5ab1d573
--- /dev/null
+++ b/src/inttypes/SCNoFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoFAST32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoFAST64.c b/src/inttypes/SCNoFAST64.c
new file mode 100644
index 00000000..0e400fcb
--- /dev/null
+++ b/src/inttypes/SCNoFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoFAST64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoFAST8.c b/src/inttypes/SCNoFAST8.c
new file mode 100644
index 00000000..21a20cfb
--- /dev/null
+++ b/src/inttypes/SCNoFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoFAST8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoLEAST16.c b/src/inttypes/SCNoLEAST16.c
new file mode 100644
index 00000000..c42d6b8a
--- /dev/null
+++ b/src/inttypes/SCNoLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoLEAST16 "ho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoLEAST32.c b/src/inttypes/SCNoLEAST32.c
new file mode 100644
index 00000000..517981f1
--- /dev/null
+++ b/src/inttypes/SCNoLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoLEAST32 "lo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoLEAST64.c b/src/inttypes/SCNoLEAST64.c
new file mode 100644
index 00000000..a64e6315
--- /dev/null
+++ b/src/inttypes/SCNoLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoLEAST64 "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoLEAST8.c b/src/inttypes/SCNoLEAST8.c
new file mode 100644
index 00000000..3ddffcd5
--- /dev/null
+++ b/src/inttypes/SCNoLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoLEAST8 "hho"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoMAX.c b/src/inttypes/SCNoMAX.c
new file mode 100644
index 00000000..284b8328
--- /dev/null
+++ b/src/inttypes/SCNoMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNoMAX "llo"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNoPTR.c b/src/inttypes/SCNoPTR.c
new file mode 100644
index 00000000..b3d50767
--- /dev/null
+++ b/src/inttypes/SCNoPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNoPTR "llo"
+#else
+#define SCNoPTR "lo"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNu16.c b/src/inttypes/SCNu16.c
new file mode 100644
index 00000000..7c9aa80d
--- /dev/null
+++ b/src/inttypes/SCNu16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNu16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNu32.c b/src/inttypes/SCNu32.c
new file mode 100644
index 00000000..c79840ae
--- /dev/null
+++ b/src/inttypes/SCNu32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNu32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNu64.c b/src/inttypes/SCNu64.c
new file mode 100644
index 00000000..b2047f71
--- /dev/null
+++ b/src/inttypes/SCNu64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNu64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNu8.c b/src/inttypes/SCNu8.c
new file mode 100644
index 00000000..faeabe4d
--- /dev/null
+++ b/src/inttypes/SCNu8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNu8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuFAST16.c b/src/inttypes/SCNuFAST16.c
new file mode 100644
index 00000000..bc3cf1f7
--- /dev/null
+++ b/src/inttypes/SCNuFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuFAST16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuFAST32.c b/src/inttypes/SCNuFAST32.c
new file mode 100644
index 00000000..ae577ebd
--- /dev/null
+++ b/src/inttypes/SCNuFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuFAST32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuFAST64.c b/src/inttypes/SCNuFAST64.c
new file mode 100644
index 00000000..13d57290
--- /dev/null
+++ b/src/inttypes/SCNuFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuFAST64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuFAST8.c b/src/inttypes/SCNuFAST8.c
new file mode 100644
index 00000000..bb749288
--- /dev/null
+++ b/src/inttypes/SCNuFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuFAST8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuLEAST16.c b/src/inttypes/SCNuLEAST16.c
new file mode 100644
index 00000000..cebb8217
--- /dev/null
+++ b/src/inttypes/SCNuLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuLEAST16 "hu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuLEAST32.c b/src/inttypes/SCNuLEAST32.c
new file mode 100644
index 00000000..5285c789
--- /dev/null
+++ b/src/inttypes/SCNuLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuLEAST32 "lu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuLEAST64.c b/src/inttypes/SCNuLEAST64.c
new file mode 100644
index 00000000..c0dd9c9c
--- /dev/null
+++ b/src/inttypes/SCNuLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuLEAST64 "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuLEAST8.c b/src/inttypes/SCNuLEAST8.c
new file mode 100644
index 00000000..d09eeaae
--- /dev/null
+++ b/src/inttypes/SCNuLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuLEAST8 "hhu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuMAX.c b/src/inttypes/SCNuMAX.c
new file mode 100644
index 00000000..54f76ab6
--- /dev/null
+++ b/src/inttypes/SCNuMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNuMAX "llu"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNuPTR.c b/src/inttypes/SCNuPTR.c
new file mode 100644
index 00000000..9bd73424
--- /dev/null
+++ b/src/inttypes/SCNuPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNuPTR "llu"
+#else
+#define SCNuPTR "lu"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNx16.c b/src/inttypes/SCNx16.c
new file mode 100644
index 00000000..231c7d76
--- /dev/null
+++ b/src/inttypes/SCNx16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNx16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNx32.c b/src/inttypes/SCNx32.c
new file mode 100644
index 00000000..39d05ec9
--- /dev/null
+++ b/src/inttypes/SCNx32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNx32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNx64.c b/src/inttypes/SCNx64.c
new file mode 100644
index 00000000..bf42ec81
--- /dev/null
+++ b/src/inttypes/SCNx64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNx64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNx8.c b/src/inttypes/SCNx8.c
new file mode 100644
index 00000000..2a44f4bb
--- /dev/null
+++ b/src/inttypes/SCNx8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNx8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxFAST16.c b/src/inttypes/SCNxFAST16.c
new file mode 100644
index 00000000..82420fd7
--- /dev/null
+++ b/src/inttypes/SCNxFAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxFAST16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxFAST32.c b/src/inttypes/SCNxFAST32.c
new file mode 100644
index 00000000..399b4587
--- /dev/null
+++ b/src/inttypes/SCNxFAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxFAST32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxFAST64.c b/src/inttypes/SCNxFAST64.c
new file mode 100644
index 00000000..42df9ea6
--- /dev/null
+++ b/src/inttypes/SCNxFAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxFAST64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxFAST8.c b/src/inttypes/SCNxFAST8.c
new file mode 100644
index 00000000..d6b1dc83
--- /dev/null
+++ b/src/inttypes/SCNxFAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxFAST8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxLEAST16.c b/src/inttypes/SCNxLEAST16.c
new file mode 100644
index 00000000..8e78c5ca
--- /dev/null
+++ b/src/inttypes/SCNxLEAST16.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxLEAST16 "hx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxLEAST32.c b/src/inttypes/SCNxLEAST32.c
new file mode 100644
index 00000000..18d6bdc3
--- /dev/null
+++ b/src/inttypes/SCNxLEAST32.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxLEAST32 "lx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxLEAST64.c b/src/inttypes/SCNxLEAST64.c
new file mode 100644
index 00000000..ce2c46ed
--- /dev/null
+++ b/src/inttypes/SCNxLEAST64.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxLEAST64 "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxLEAST8.c b/src/inttypes/SCNxLEAST8.c
new file mode 100644
index 00000000..a1a4ac5f
--- /dev/null
+++ b/src/inttypes/SCNxLEAST8.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxLEAST8 "hhx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxMAX.c b/src/inttypes/SCNxMAX.c
new file mode 100644
index 00000000..c328e55f
--- /dev/null
+++ b/src/inttypes/SCNxMAX.c
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+#define SCNxMAX "llx"
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/SCNxPTR.c b/src/inttypes/SCNxPTR.c
new file mode 100644
index 00000000..920f73de
--- /dev/null
+++ b/src/inttypes/SCNxPTR.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+#if WORD_BIT == 64
+#define SCNxPTR "llx"
+#else
+#define SCNxPTR "lx"
+#endif
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/imaxabs.c b/src/inttypes/imaxabs.c
new file mode 100644
index 00000000..4f820239
--- /dev/null
+++ b/src/inttypes/imaxabs.c
@@ -0,0 +1,27 @@
+#include <inttypes.h>
+
+intmax_t imaxabs(intmax_t j)
+{
+ /* returns the absolute value of j */
+ /* if imaxabs(j) can't be representeted (i.e. imaxabs(INTMAX_MIN), behavior is undefined */
+/*
+ if (j == INTMAX_MIN) {
+ __ungol_libc_undefined("Cannot represent absolute value of %" PRIxMAX "\n", j);
+ }
+*/
+ if (j == INTMAX_MIN) {
+ /* undefined behavior */
+ return INTMAX_MIN;
+ }
+
+ if (j < 0) {
+ return -j;
+ }
+
+ return j;
+}
+
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/imaxdiv.c b/src/inttypes/imaxdiv.c
new file mode 100644
index 00000000..043cee45
--- /dev/null
+++ b/src/inttypes/imaxdiv.c
@@ -0,0 +1,19 @@
+#include <inttypes.h>
+
+imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom)
+{
+ imaxdiv_t r = {0};
+ if (denom == 0) {
+ /* undefined */
+ return r;
+ }
+ r.quot = numer / denom;
+ r.rem = numer % denom;
+ /* if either cannot be represented, undefined */
+ return r;
+}
+
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/imaxdiv_t.c b/src/inttypes/imaxdiv_t.c
new file mode 100644
index 00000000..70b40c02
--- /dev/null
+++ b/src/inttypes/imaxdiv_t.c
@@ -0,0 +1,10 @@
+#include <inttypes.h>
+
+typedef struct {
+ intmax_t quot;
+ intmax_t rem;
+} imaxdiv_t;
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/stdint.ref b/src/inttypes/stdint.ref
new file mode 100644
index 00000000..82584103
--- /dev/null
+++ b/src/inttypes/stdint.ref
@@ -0,0 +1,6 @@
+#include <inttypes.h>
+REFERENCE(<stdint.h>)
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/strtoimax.c b/src/inttypes/strtoimax.c
new file mode 100644
index 00000000..5a68c47c
--- /dev/null
+++ b/src/inttypes/strtoimax.c
@@ -0,0 +1,21 @@
+#include <inttypes.h>
+
+intmax_t strtoimax(const char * restrict nptr, char ** restrict endptr, int base)
+{
+ /* like strotoll */
+
+ /* if > INTMAX_MAX */
+ /* errno = ERANGE; */
+ /* return INTMAX_MAX */
+
+ /* if < INTMAX_MIN */
+ /* errno = ERANGE; */
+ /* return INTMAX_MIN; */
+
+ /* if no conversion */
+ return 0;
+}
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/strtoumax.c b/src/inttypes/strtoumax.c
new file mode 100644
index 00000000..bc286cc0
--- /dev/null
+++ b/src/inttypes/strtoumax.c
@@ -0,0 +1,17 @@
+#include <inttypes.h>
+
+uintmax_t strtoumax(const char *restrict nptr, char ** restrict endptr, int base)
+{
+ /* like strotull */
+
+ /* if > UINTMAX_MAX */
+ /* errno = ERANGE; */
+ /* return UINTMAX_MAX */
+
+ /* if no conversion */
+ return 0;
+}
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/wcstoimax.c b/src/inttypes/wcstoimax.c
new file mode 100644
index 00000000..12c9a850
--- /dev/null
+++ b/src/inttypes/wcstoimax.c
@@ -0,0 +1,21 @@
+#include <inttypes.h>
+
+intmax_t wcstoimax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base)
+{
+ /* like wcstoll */
+
+ /* if > INTMAX_MAX */
+ /* errno = ERANGE; */
+ /* return INTMAX_MAX */
+
+ /* if < INTMAX_MIN */
+ /* errno = ERANGE; */
+ /* return INTMAX_MIN; */
+
+ /* if no conversion */
+ return 0;
+}
+
+/*
+STDC(199901)
+*/
diff --git a/src/inttypes/wcstoumax.c b/src/inttypes/wcstoumax.c
new file mode 100644
index 00000000..8516da08
--- /dev/null
+++ b/src/inttypes/wcstoumax.c
@@ -0,0 +1,17 @@
+#include <inttypes.h>
+
+uintmax_t wcstoumax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base)
+{
+ /* like wcstoll */
+
+ /* if > UINTMAX_MAX */
+ /* errno = ERANGE; */
+ /* return UINTMAX_MAX */
+
+ /* if no conversion */
+ return 0;
+}
+
+/*
+STDC(199901)
+*/