| macro | description | example | 
|---|---|---|
| PRIxMAX | printf specifier for intmax_t | PRIiMAXis the equivalent ofi(in"%i") forintmax_tvalues | 
| PRIxN | printf specifier for intN_t | PRId16is the equivalent ofd(in"%d") forint16_tvalues | 
| PRIxLEASTN | printf specifier for int_leastN_t | PRIuLEAST32is the equivalent ofu(in"%u") foruint32_tvalues | 
| PRIxFASTN | printf specifier for int_fastN_t | PRIxFAST8is the equivalent ofx(in"%x") foruint8_tvalues | 
| PRIxPTR | printf specifier for intptr_t | PRIuPTRis the equivalent ofu(in"%u") foruintptr_tvalues | 
| SCNxMAX | scanf specifier for intmax_t | SCNiMAXis the equivalent ofi(in"%i") forintmax_tvalues | 
| SCNxN | scanf specifier for intN_t | SCNd16is the equivalent ofd(in"%d") forint16_tvalues | 
| SCNxLEASTN | scanf specifier for int_leastN_t | SCNuLEAST32is the equivalent ofu(in"%u") foruint32_tvalues | 
| SCNxFASTN | scanf specifier for int_fastN_t | SCNxFAST8is the equivalent ofx(in"%x") foruint8_tvalues | 
| SCNxPTR | scanf specifier for intptr_t | SCNuPTRis the equivalent ofu(in"%u") foruintptr_tvalues | 
d, i, o,u or x (for the printf specifiers this can also be an uppercase X).*i and d, and unsigned for o, u, x and X.| function | description | 
|---|---|
| imaxabs | equivalent to abs for intmax_t: intmax_t imaxabs (intmax_t n); | 
| imaxdiv | equivalent to div for intmax_t: imaxdiv_t imaxdiv (intmax_t numer, intmax_t denom); | 
| strtoimax | equivalent to strtol for intmax_t: intmax_t strtoimax (const char* str, char** endptr, int base); | 
| strtoumax | equivalent to strtoul for uintmax_t: uintmax_t strtoumax (const char* str, char** endptr, int base); | 
| wcstoimax | equivalent to wcstol for intmax_t: intmax_t wcstoimax (const wchar_t* wcs, wchar_t** endptr, int base); | 
| wcstoumax | equivalent to wcstoul for uintmax_t: uintmax_t wcstoumax (const wchar_t* wcs, wchar_t** endptr, int base); | 
| Type | description | 
|---|---|
| imaxdiv_t | Type returned by imaxdiv, which is the div_t equivalent for intmax_t. | 
|  |  | 
| Please, enter a number: 10 Thanks for entering 10. Please, enter another number: 20 10 by 20 is 200 |