-// ----------------------------------------------------------------------------
-// $Id$
-// ----------------------------------------------------------------------------
-// Public Domain C Library - http://pdclib.sourceforge.net
-// This code is Public Domain. Use, modify, and redistribute at will.
-// ----------------------------------------------------------------------------
-// Format conversion of integer types
-// ----------------------------------------------------------------------------
-
-#ifndef __INTTYPES_H
-#define __INTTYPES_H __INTTYPES_H
-
-// ----------------------------------------------------------------------------
-// TYPEDEFS
-
-typedef struct
-{
- intmax_t quotient,
- intmax_t remainder;
-}
-imaxdiv_t;
-
-// ----------------------------------------------------------------------------
-// FUNCTIONS
-
-intmax_t imaxabs( intmax_t i );
-intmax_t abs( intmax_t i ); [C++ only]
-
+/* $Id$ */
+
+/* 7.8 Format conversion of integer types <inttypes.h>
+
+ This file is part of the Public Domain C Library (PDCLib).
+ Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#ifndef _PDCLIB_INTTYPES_H
+#define _PDCLIB_INTTYPES_H _PDCLIB_INTTYPES_H
+
+#include <stdint.h>
+
+typedef struct _PDCLIB_imaxdiv_t imaxdiv_t;
+
+/* TODO: Print / Scan Macros */
+/*
+PRId8 PRIdLEAST8 PRIdFAST8 PRIdMAX
+PRId16 PRIdLEAST16 PRIdFAST16 PRIdPTR
+PRId32 PRIdLEAST32 PRIdFAST32
+PRId64 PRIdLEAST64 PRIdFAST64
+
+PRIi8 PRIiLEAST8 PRIiFAST8 PRIiMAX
+PRIi16 PRIiLEAST16 PRIiFAST16 PRIdPTR
+PRIi32 PRIiLEAST32 PRIiFAST32
+PRIi64 PRIiLEAST64 PRIiFAST64
+
+PRIo8 PRIoLEAST8 PRIoFAST8 PRIoMAX
+PRIo16 PRIoLEAST16 PRIoFAST16 PRIoPTR
+PRIo32 PRIoLEAST32 PRIoFAST32
+PRIo64 PRIoLEAST64 PRIoFAST64
+
+PRIu8 PRIuLEAST8 PRIuFAST8 PRIuMAX
+PRIu16 PRIuLEAST16 PRIuFAST16 PRIuPTR
+PRIu32 PRIuLEAST32 PRIuFAST32
+PRIu64 PRIuLEAST64 PRIuFAST64
+
+PRIx8 PRIxLEAST8 PRIxFAST8 PRIxMAX
+PRIx16 PRIxLEAST16 PRIxFAST16 PRIxPTR
+PRIx32 PRIxLEAST32 PRIxFAST32
+PRIx64 PRIxLEAST64 PRIxFAST64
+
+PRIX8 PRIXLEAST8 PRIXFAST8 PRIXMAX
+PRIX16 PRIXLEAST16 PRIXFAST16 PRIXPTR
+PRIX32 PRIXLEAST32 PRIXFAST32
+PRIX64 PRIXLEAST64 PRIXFAST64
+
+SCNd8 SCNdLEAST8 SCNdFAST8 SCNdMAX
+SCNd16 SCNdLEAST16 SCNdFAST16 SCNdPTR
+SCNd32 SCNdLEAST32 SCNdFAST32
+SCNd64 SCNdLEAST64 SCNdFAST64
+
+SCNi8 SCNiLEAST8 SCNiFAST8 SCNiMAX
+SCNi16 SCNiLEAST16 SCNiFAST16 SCNdPTR
+SCNi32 SCNiLEAST32 SCNiFAST32
+SCNi64 SCNiLEAST64 SCNiFAST64
+
+SCNo8 SCNoLEAST8 SCNoFAST8 SCNoMAX
+SCNo16 SCNoLEAST16 SCNoFAST16 SCNoPTR
+SCNo32 SCNoLEAST32 SCNoFAST32
+SCNo64 SCNoLEAST64 SCNoFAST64
+
+SCNu8 SCNuLEAST8 SCNuFAST8 SCNuMAX
+SCNu16 SCNuLEAST16 SCNuFAST16 SCNuPTR
+SCNu32 SCNuLEAST32 SCNuFAST32
+SCNu64 SCNuLEAST64 SCNuFAST64
+
+SCNx8 SCNxLEAST8 SCNxFAST8 SCNxMAX
+SCNx16 SCNxLEAST16 SCNxFAST16 SCNxPTR
+SCNx32 SCNxLEAST32 SCNxFAST32
+SCNx64 SCNxLEAST64 SCNxFAST64
+
+SCNX8 SCNXLEAST8 SCNXFAST8 SCNXMAX
+SCNX16 SCNXLEAST16 SCNXFAST16 SCNXPTR
+SCNX32 SCNXLEAST32 SCNXFAST32
+SCNX64 SCNXLEAST64 SCNXFAST64
+*/
+
+/* 7.8.2 Functions for greatest-width integer types */
+
+/* Calculate the absolute value of j */
+intmax_t imaxabs( intmax_t j );
+
+/* Return quotient (quot) and remainder (rem) of an integer division in the
+ imaxdiv_t struct.
+*/