From 9aa96de61d5023eb45cd357b026cd935a60485d4 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 15 Oct 2022 15:12:53 +0200 Subject: [PATCH] libc: Start implementing inttypes.h --- libs/libc/include/inttypes.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libs/libc/include/inttypes.h diff --git a/libs/libc/include/inttypes.h b/libs/libc/include/inttypes.h new file mode 100644 index 00000000..97be1532 --- /dev/null +++ b/libs/libc/include/inttypes.h @@ -0,0 +1,21 @@ +#ifndef _INTTYPES_H +#define _INTTYPES_H + +#include + +#define PRId8 "%d" +#define PRId16 "%d" +#define PRId32 "%d" +#define PRId64 "%ld" +#define PRIdLEAST8 "%d" +#define PRIdLEAST16 "%d" +#define PRIdLEAST32 "%d" +#define PRIdLEAST64 "%ld" +#define PRIdFAST8 "%d" +#define PRIdFAST16 "%d" +#define PRIdFAST32 "%d" +#define PRIdFAST64 "%ld" +#define PRIdMAX "%ld" +#define PRIdPTR "%ld" + +#endif \ No newline at end of file