inttypes.h 734 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* Minimal inttypes.h for ring-3 commands. */
  2. #ifndef LIBC_INTTYPES_H
  3. #define LIBC_INTTYPES_H
  4. #include <stdint.h>
  5. #define PRId8 "d"
  6. #define PRIi8 "i"
  7. #define PRIu8 "u"
  8. #define PRIx8 "x"
  9. #define PRIX8 "X"
  10. #define PRId16 "d"
  11. #define PRIi16 "i"
  12. #define PRIu16 "u"
  13. #define PRIx16 "x"
  14. #define PRIX16 "X"
  15. #define PRId32 "d"
  16. #define PRIi32 "i"
  17. #define PRIu32 "u"
  18. #define PRIx32 "x"
  19. #define PRIX32 "X"
  20. #define PRId64 "lld"
  21. #define PRIi64 "lli"
  22. #define PRIu64 "llu"
  23. #define PRIx64 "llx"
  24. #define PRIX64 "llX"
  25. #define PRIdPTR "d"
  26. #define PRIuPTR "u"
  27. #define PRIxPTR "x"
  28. intmax_t imaxabs(intmax_t value);
  29. intmax_t strtoimax(const char *str, char **endptr, int base);
  30. uintmax_t strtoumax(const char *str, char **endptr, int base);
  31. #endif