Conformance has a three-fold definition:
The standard does not define any minimum implementation limit on translation units. A hosted environment has an operating system; a freestanding environment does not. A program running in a hosted environment may use all features described in the library clause (clause 7); a program running in a freestanding environment may use a subset of library features required by clause 4.
[edit] Freestanding standard library headersAll standard library features in every fully freestanding header are required to be provided by a freestanding implementation.
Some standard library headers are conditionally freestanding.
__STDC_IEC_60559_BFP__
or __STDC_IEC_60559_DFP__
, then <math.h> and <fenv.h> are fully freestanding headers. However, the behavior of functions in these headers is required to be well-defined in a freestanding environment only if a program does not set the state of the FENV_ACCESS pragma to ON
.Some standard library headers are partially freestanding.
__STDC_IEC_60559_BFP__
or __STDC_IEC_60559_DFP__
are predefined, numeric conversion functions (atoX
, strtoX
, and strfromX
) are also freestanding, while their behavior is required to be well-defined in a freestanding environment only if a program does not set the state of the FENV_ACCESS pragma to ON
. No other component in <stdlib.h> is required to be to be provided by a freestanding implementation.RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4