beautypg.com

Zilog Z8F0130 User Manual

Page 450

background image

Appendix B. C Standard Library

UM013037-1212

426

Zilog Developer Studio II – Z8 Encore!
User Manual

Types

Macros

Functions

The general utilities are listed and briefly described in the following sections:

String Conversion

– see page 426

Pseudorandom Sequence Generation

– see page 427

Memory Management

– see page 427

Searching and Sorting Utilities

– see page 427

Integer Arithmetic

– see page 428

Miscellaneous

– see page 428

String Conversion

The

atof

,

atoi

, and

atol

functions do not affect the value of the errno macro on an

error. If the result cannot be represented, the behavior is undefined.

div_t

Structure type that is the type of the value returned by the div function.

ldiv_t

Structure type that is the type of the value returned by the ldiv function.

size_t

Unsigned integral type of the result of the sizeof operator.

wchar_t

Integral type whose range of values can represent distinct codes for all
members of the largest extended character set specified among the
supported locales.

EDOM

Expands to distinct nonzero integral constant expressions.

ERANGE

Expands to distinct nonzero integral constant expressions.

EXIT_SUCCESS Expands to integral expression that indicates successful termination

status.

EXIT_FAILURE

Expands to integral expression that indicates unsuccessful termination
status.

HUGE_VAL

Expands to a positive double expression, not necessarily represented
as a float.

NULL

Expands to a null pointer constant.

RAND_MAX

Expands to an integral constant expression, the value of which is the
maximum value returned by the rand function.