O'Reilly logo

C Primer Plus, Fourth Edition by Stephen Prata

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

General Utilities: stdlib.h

The ANSI C standard library includes a variety of utility functions defined in stdlib.. The header file defines the types shown in Table RS.V.31.

Table RS.V.31. Types Defined in stdlib.h
Type Description
size_t The integer type returned by the sizeof operator.
wchar_t The integer type used to represent wide characters.
div_t The structure type returned by div(); it has a quot and a rem member, both of type int.
ldiv_t The structure type returned by ldiv(); it has a quot and a rem member, both of type long.
lldiv_t The structure type returned by lldiv(); it has a quot and a rem member, both of type long long. (C99)

The header file defines the constants listed in Table RS.V.32.

Table RS.V.32. Constants Defined in stdlib.h ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required