X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=includes%2Finttypes.h;h=2b4eafef71c26772bbbe45231b17c421c5729235;hb=70f1c6f7c9d515ef426da68973511f46de57005a;hp=bb52ea9f24c10dc2ca8b596afe4a647311288bdd;hpb=ac3f809c3c10347c110fac3db93af0954eda98bb;p=pdclib diff --git a/includes/inttypes.h b/includes/inttypes.h index bb52ea9..2b4eafe 100644 --- a/includes/inttypes.h +++ b/includes/inttypes.h @@ -10,6 +10,8 @@ #ifndef __INTTYPES_H #define __INTTYPES_H __INTTYPES_H +// TODO: Documentation + // ---------------------------------------------------------------------------- // TYPEDEFS @@ -21,13 +23,18 @@ typedef struct imaxdiv_t; // ---------------------------------------------------------------------------- -// FUNCTIONS +// FUNCTIONS - C++ -intmax_t imaxabs( intmax_t i ); -intmax_t abs( intmax_t i ); [C++ only] +#ifdef __cplusplus +intmax_t abs( intmax_t i ); +imaxdiv_t div( intmax_t numer, intmax_t denom ); +#endif __cplusplus +// ---------------------------------------------------------------------------- +// FUNCTIONS - Standard C + +intmax_t imaxabs( intmax_t i ); imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ); -imaxdiv_t div( intmax_t numer, intmax_t denom ); [C++ only] intmax_t strtoimax( const char * restrict s, char * * restrict endptr, int base ); uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base );