X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=includes%2Finttypes.h;h=944793aa6a91ca9073047bc8988b27dd673ce889;hp=cc81b984a51fe92d04e8770859a8329ff9c565ab;hb=1d9d92ba957a0b8307c9a65c35867fde68e6533b;hpb=8c8750c2826684c2420571a8007b9606f72c9040 diff --git a/includes/inttypes.h b/includes/inttypes.h index cc81b98..944793a 100644 --- a/includes/inttypes.h +++ b/includes/inttypes.h @@ -1,19 +1,20 @@ -// ---------------------------------------------------------------------------- -// $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 -// ---------------------------------------------------------------------------- +/* ---------------------------------------------------------------------------- + * $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 +#ifndef _INTTYPES_H +#define _INTTYPES_H _INTTYPES_H -// TODO: Documentation +/* TODO: Documentation */ -// ---------------------------------------------------------------------------- -// TYPEDEFS +/* ---------------------------------------------------------------------------- + * TYPEDEFS + * --------------------------------------------------------------------------*/ typedef struct { @@ -22,8 +23,9 @@ typedef struct } imaxdiv_t; -// ---------------------------------------------------------------------------- -// FUNCTIONS +/* ---------------------------------------------------------------------------- + * FUNCTIONS + * --------------------------------------------------------------------------*/ intmax_t imaxabs( intmax_t i ); imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ); @@ -33,8 +35,9 @@ uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base intmax_t wcstoimax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ); uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ); -// ---------------------------------------------------------------------------- -// MACROS (PRINT) +/* ---------------------------------------------------------------------------- + * MACROS (PRINT) + * --------------------------------------------------------------------------*/ #define PRId8 #define PRId16 @@ -144,8 +147,9 @@ uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, in #define PRIXMAX #define PRIXPTR -// ---------------------------------------------------------------------------- -// MACROS (SCAN) +/* ---------------------------------------------------------------------------- + * MACROS (SCAN) + * --------------------------------------------------------------------------*/ #define SCNd8 #define SCNd16 @@ -255,4 +259,4 @@ uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, in #define SCNXMAX #define SCNXPTR -#endif // __INTTYPES_H +#endif /* _INTTYPES_H */