inttypes.h

Overview

Related Modules:

UTILS

Description:

Provides functions and related data structures for conversion between character strings and plural.

You can use the functions provided in this file to perform operations related to wide character types during development, for example, performing a division operation, converting a character string to an imax-type parameter, or converting a character string to an umax-type parameter.

Since:

1.0

Version:

1.0

Summary

Data Structures

Data Structure Name

Description

imaxdiv_t

Stores the division result.

Functions

Function Name

Description

imaxabs (intmax_t j)

intmax_t 

Calculates the absolute value of an input parameter of the integer type.

imaxdiv (intmax_t numerator, intmax_t denominator)

imaxdiv_t 

Calculates the quotient and remainder after the division operation is performed on an integer.

strtoimax (const char str, char **endptr, int base)

intmax_t 

Parses a string to a value of the intmax_t type.

strtoumax (const char str, char endptr, int base)

uintmax_t 

Parses a string to a value of the uintmax_t type.

wcstoimax (const wchar_t *str, wchar_t endptr, int base)

intmax_t 

Parses a string to a value of the intmax_t type.

wcstoumax (const wchar_t str, wchar_t *endptr, int base)

uintmax_t 

Parses a string to a value of the uintmax_t type.