X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Finttypes.c;fp=functions%2Finttypes.c;h=d815cca26d2d6367e862699d0a983050d7e9bb7c;hb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec;hp=0000000000000000000000000000000000000000;hpb=34b76b9d65477be9c7d35cd254f44be85b3786b4;p=pdclib diff --git a/functions/inttypes.c b/functions/inttypes.c new file mode 100644 index 0000000..d815cca --- /dev/null +++ b/functions/inttypes.c @@ -0,0 +1,23 @@ +// ---------------------------------------------------------------------------- +// $Id$ +// ---------------------------------------------------------------------------- +// Public Domain C Library - http://pdclib.sourceforge.net +// This code is Public Domain. Use, modify, and redistribute at will. +// ---------------------------------------------------------------------------- + +// ---------------------------------------------------------------------------- +// C++ + +intmax_t abs( intmax_t i ) { /* TODO */ }; +imaxdiv_t div( intmax_t numer, intmax_t denom ) { /* TODO */ }; + +// ---------------------------------------------------------------------------- +// Standard C + +intmax_t imaxabs( intmax_t i ) { /* TODO */ }; +imaxdiv_t imaxdiv( intmax_t numer, intmax_t denom ) { /* TODO */ }; + +intmax_t strtoimax( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +uintmax_t strtoumax( const char * restrict s, char * * restrict endptr, int base ) { /* TODO */ }; +intmax_t wcstoimax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ) { /* TODO */ }; +uintmax_t wcstoumax( const wchar_t * restrict s, wchar_t * * restrict endptr, int base ) { /* TODO */ };