1 Star 0 Fork 4.9K

罗小黑 / docs

forked from OpenHarmony / docs 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
inttypes-h.md 6.44 KB
一键复制 编辑 原始数据 按行查看 历史
wenjun 提交于 2020-09-08 10:08 . add OpenHarmony 1.0 baseline

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.

1
https://gitee.com/lawguiren/docs.git
git@gitee.com:lawguiren/docs.git
lawguiren
docs
docs
master

搜索帮助