X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=n1548.html;h=47d9b1b214e2787172520addc23891ffd0f0a154;hb=6c55e01324160ad9e3d4453aead2dabbc85c90f2;hp=5536763ce9dac469333b9b3311617415e95533c2;hpb=7df8cd2a500cd0285ce82e96357a0d7e06b3956f;p=c-standard
diff --git a/n1548.html b/n1548.html
index 5536763..47d9b1b 100644
--- a/n1548.html
+++ b/n1548.html
@@ -44,7 +44,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-Contents
+
ISO (the International Organization for Standardization) and IEC (the International
Electrotechnical Commission) form the specialized system for worldwide
@@ -692,7 +692,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
are also for information only.
-Introduction
+
With the introduction of new devices and extended character sets, new features may be
added to this International Standard. Subclauses in the language and library clauses warn
@@ -731,7 +731,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-1. Scope
+
This International Standard specifies the form and establishes the interpretation of
programs written in the C programming language.1) It specifies
@@ -767,7 +767,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
data-processing systems. It is intended for use by implementors and programmers.
-2. Normative references
+
The following referenced documents are indispensable for the application of this
document. For dated references, only the edition cited applies. For undated references,
@@ -794,7 +794,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
designated IEC 559:1989).
-3. Terms, definitions, and symbols
+
For the purposes of this International Standard, the following definitions apply. Other
terms are defined where they appear in italic type or on the left side of a syntax rule.
@@ -803,9 +803,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Standard are to be interpreted according to ISO/IEC 2382-1. Mathematical symbols not
defined in this International Standard are to be interpreted according to ISO 31-11.
-3.1
+
- access
+ access
<execution-time action> to read or modify the value of an object
NOTE 1 Where only one of these two actions is meant, ''read'' or ''modify'' is used.
@@ -817,38 +817,38 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
NOTE 3 Expressions that are not evaluated do not access objects.
-3.2
+
- alignment
+ alignment
requirement that objects of a particular type be located on storage boundaries with
addresses that are particular multiples of a byte address
-3.3
+
- argument
+ argument
actual argument
actual parameter (deprecated)
expression in the comma-separated list bounded by the parentheses in a function call
expression, or a sequence of preprocessing tokens in the comma-separated list bounded
by the parentheses in a function-like macro invocation
-3.4
+
- behavior
+ behavior
external appearance or action
-3.4.1
+
- implementation-defined behavior
+ implementation-defined behavior
unspecified behavior where each implementation documents how the choice is made
EXAMPLE An example of implementation-defined behavior is the propagation of the high-order bit
when a signed integer is shifted right.
-3.4.2
+
- locale-specific behavior
+ locale-specific behavior
behavior that depends on local conventions of nationality, culture, and language that each
implementation documents
@@ -857,9 +857,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
characters other than the 26 lowercase Latin letters.
-3.4.3
+
- undefined behavior
+ undefined behavior
behavior, upon use of a nonportable or erroneous program construct or of erroneous data,
for which this International Standard imposes no requirements
@@ -872,9 +872,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
EXAMPLE An example of undefined behavior is the behavior on integer overflow.
-3.4.4
+
- unspecified behavior
+ unspecified behavior
use of an unspecified value, or other behavior where this International Standard provides
two or more possibilities and imposes no further requirements on which is chosen in any
instance
@@ -883,18 +883,18 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
evaluated.
-3.5
+
- bit
+ bit
unit of data storage in the execution environment large enough to hold an object that may
have one of two values
NOTE It need not be possible to express the address of each individual bit of an object.
-3.6
+
- byte
+ byte
addressable unit of data storage large enough to hold any member of the basic character
set of the execution environment
@@ -906,73 +906,73 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
bit.
-3.7
+
- character
+ character
<abstract> member of a set of elements used for the organization, control, or
representation of data
-3.7.1
+
- character
+ character
single-byte character
<C> bit representation that fits in a byte
-3.7.2
+
- multibyte character
+ multibyte character
sequence of one or more bytes representing a member of the extended character set of
either the source or the execution environment
NOTE The extended character set is a superset of the basic character set.
-3.7.3
+
- wide character
+ wide character
bit representation that fits in an object of type wchar_t, capable of representing any
character in the current locale
-3.8
+
- constraint
+ constraint
restriction, either syntactic or semantic, by which the exposition of language elements is
to be interpreted
-3.9
+
- correctly rounded result
+ correctly rounded result
representation in the result format that is nearest in value, subject to the current rounding
mode, to what the result would be given unlimited range and precision
-3.10
+
- diagnostic message
+ diagnostic message
message belonging to an implementation-defined subset of the implementation's message
output
-3.11
+
- forward reference
+ forward reference
reference to a later subclause of this International Standard that contains additional
information relevant to this subclause
-3.12
+
- implementation
+ implementation
particular set of software, running in a particular translation environment under particular
control options, that performs translation of programs for, and supports execution of
functions in, a particular execution environment
-3.13
+
- implementation limit
+ implementation limit
restriction imposed upon programs by the implementation
-3.14
+
- memory location
+ memory location
either an object of scalar type, or a maximal sequence of adjacent bit-fields all having
nonzero width
@@ -1002,33 +1002,33 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
modified, but b and a, for example, can be.
-3.15
+
- object
+ object
region of data storage in the execution environment, the contents of which can represent
values
NOTE When referenced, an object may be interpreted as having a particular type; see 6.3.2.1.
-3.16
+
- parameter
+ parameter
formal parameter
formal argument (deprecated)
object declared as part of a function declaration or definition that acquires a value on
entry to the function, or an identifier from the comma-separated list bounded by the
parentheses immediately following the macro name in a function-like macro definition
-3.17
+
- recommended practice
+ recommended practice
specification that is strongly recommended as being in keeping with the intent of the
standard, but that may be impractical for some implementations
-3.18
+
- runtime-constraint
+ runtime-constraint
requirement on a program when calling a library function
NOTE 1 Despite the similar terms, a runtime-constraint is not a kind of constraint as defined by 3.8, and
@@ -1039,38 +1039,38 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
constraints for a library function are not violated by the program; see K.3.1.4.
-3.19
+
- value
+ value
precise meaning of the contents of an object when interpreted as having a specific type
-3.19.1
+
- implementation-defined value
+ implementation-defined value
unspecified value where each implementation documents how the choice is made
-3.19.2
+
- indeterminate value
+ indeterminate value
either an unspecified value or a trap representation
-3.19.3
+
- unspecified value
+ unspecified value
valid value of the relevant type where this International Standard imposes no
requirements on which value is chosen in any instance
NOTE An unspecified value cannot be a trap representation.
-3.19.4
+
- trap representation
+ trap representation
an object representation that need not represent a value of the object type
-3.19.5
+
- perform a trap
+ perform a trap
interrupt execution of the program such that no further operations are performed
NOTE In this International Standard, when the word ''trap'' is not immediately followed by
@@ -1082,17 +1082,17 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
representation might perform a trap but is not required to (see 6.2.6.1).
-3.20
+
- [^ x^]
+ [^ x^]
ceiling of x: the least integer greater than or equal to x
EXAMPLE [^2.4^] is 3, [^-2.4^] is -2.
-3.21
+
- [_ x_]
+ [_ x_]
floor of x: the greatest integer less than or equal to x
EXAMPLE [_2.4_] is 2, [_-2.4_] is -3.
@@ -1102,7 +1102,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-4. Conformance
+
In this International Standard, ''shall'' is to be interpreted as a requirement on an
implementation or on a program; conversely, ''shall not'' is to be interpreted as a
@@ -1175,7 +1175,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
implementation.
-5. Environment
+
An implementation translates C source files and executes C programs in two data- processing-system environments, which will be called the translation environment and @@ -1185,11 +1185,11 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Forward references: In this clause, only a few of many possible forward references
have been noted.
-5.1 Conceptual models
+
A C program need not all be translated at the same time. The text of the program is kept in units called source files, (or preprocessing files) in this International Standard. A @@ -1204,7 +1204,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Forward references: linkages of identifiers (6.2.2), external definitions (6.9),
preprocessing directives (6.10).
-5.1.1.2 Translation phases
+
The precedence among the syntax rules of translation is specified by the following
phases.6)
@@ -1269,7 +1269,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
character.
-5.1.1.3 Diagnostics
+
A conforming implementation shall produce at least one diagnostic message (identified in
an implementation-defined manner) if a preprocessing translation unit or translation unit
@@ -1291,7 +1291,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
valid program is still correctly translated. It may also successfully translate an invalid program.
-5.1.2 Execution environments
+
Two execution environments are defined: freestanding and hosted. In both cases, program startup occurs when a designated C function is called by the execution @@ -1301,7 +1301,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. environment.
Forward references: storage durations of objects (6.2.4), initialization (6.7.9).
-5.1.2.1 Freestanding environment
+
In a freestanding environment (in which C program execution may take place without any
benefit of an operating system), the name and type of the function called at program
@@ -1311,7 +1311,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The effect of program termination in a freestanding environment is implementation-
defined.
-5.1.2.2 Hosted environment
+
A hosted environment need not be provided, but shall conform to the following
specifications if present.
@@ -1321,7 +1321,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-5.1.2.2.1 Program startup
+
The function called at program startup is named main. The implementation declares no
prototype for this function. It shall be defined with a return type of int and with no
@@ -1361,7 +1361,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
char ** argv, and so on.
-5.1.2.2.2 Program execution
+
In a hosted environment, a program may use all the functions, macros, type definitions,
and objects described in the library clause (clause 7).
@@ -1371,7 +1371,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-5.1.2.2.3 Program termination
+
If the return type of the main function is a type compatible with int, a return from the
initial call to the main function is equivalent to calling the exit function with the value
@@ -1385,7 +1385,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
will have ended in the former case, even where they would not have in the latter.
-5.1.2.3 Program execution
+
The semantic descriptions in this International Standard describe the behavior of an
abstract machine in which issues of optimization are irrelevant.
@@ -1562,7 +1562,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
cannot interleave, but can be executed in any order.
-5.1.2.4 Multi-threaded executions and data races
+
Under a hosted implementation, a program can have more than one thread of execution
(or thread) running concurrently. The execution of each thread proceeds as defined by
@@ -1780,9 +1780,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
release/consume in place of release/acquire.
-5.2 Environmental considerations
+
Two sets of characters and their associated collating sequences shall be defined: the set in which source files are written (the source character set), and the set interpreted in the @@ -1834,7 +1834,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Forward references: universal character names (6.4.3), character constants (6.4.4.4),
preprocessing directives (6.10), string literals (6.4.5), comments (6.4.9), string (7.1.1).
-5.2.1.1 Trigraph sequences
+
Before any other processing takes place, each occurrence of one of the following
sequences of three characters (called trigraph sequences17)) is replaced with the
@@ -1867,7 +1867,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
described in ISO/IEC 646, which is a subset of the seven-bit US ASCII code set.
-5.2.1.2 Multibyte characters
+
The source character set may contain multibyte characters, used to represent members of
the extended character set. The execution character set may also contain multibyte
@@ -1898,7 +1898,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
of a sequence of valid multibyte characters.
-5.2.2 Character display semantics
+
The active position is that location on a display device where the next character output by the fputc function would appear. The intent of writing a printing character (as defined @@ -1936,7 +1936,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. International Standard.
Forward references: the isprint function (7.4.1.8), the fputc function (7.21.7.3).
-5.2.3 Signals and interrupts
+
Functions shall be implemented such that they may be interrupted at any time by a signal,
or may be called by a signal handler, or both, with no alteration to earlier, but still active,
@@ -1945,14 +1945,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
image (the instructions that compose the executable representation of a function) on a
per-invocation basis.
-5.2.4 Environmental limits
+
Both the translation and execution environments constrain the implementation of
language translators and libraries. The following summarizes the language-related
environmental limits on a conforming implementation; the library-related limits are
discussed in clause 7.
-5.2.4.1 Translation limits
+
The implementation shall be able to translate and execute at least one program that contains at least one instance of every one of the following limits:18) @@ -1999,14 +1999,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
19) See ''future language directions'' (6.11.3).
-5.2.4.2 Numerical limits
+
An implementation is required to document all the limits specified in this subclause, which are specified in the headers <limits.h> and <float.h>. Additional limits are specified in <stdint.h>.
Forward references: integer types <stdint.h> (7.20).
-5.2.4.2.1 Sizes of integer types
+
The values given below shall be replaced by constant expressions suitable for use in #if preprocessing directives. Moreover, except for CHAR_BIT and MB_LEN_MAX, the @@ -2070,7 +2070,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
20) See 6.2.5.
-5.2.4.2.2 Characteristics of floating types
+
The characteristics of floating types are defined in terms of a model that describes a representation of floating-point numbers and values that provide information about an @@ -2269,7 +2269,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. DBL_TRUE_MIN 1E-37 LDBL_TRUE_MIN 1E-37 - Recommended practice +
Conversion from (at least) double to decimal with DECIMAL_DIG digits and back
should be the identity function.
@@ -2390,9 +2390,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
limits are one less than shown here.
-6. Language
+
In the syntax notation used in this clause, syntactic categories (nonterminals) are indicated by italic type, and literal words and character set members (terminals) by bold @@ -2408,9 +2408,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
A summary of the language syntax is given in annex A.
-6.2 Concepts
+
An identifier can denote an object; a function; a tag or a member of a structure, union, or
enumeration; a typedef name; a label name; a macro name; or a macro parameter. The
@@ -2466,7 +2466,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
(6.9.1), identifiers (6.4.2), macro replacement (6.10.3), name spaces of identifiers (6.2.3),
source file inclusion (6.10.2), statements (6.8).
-6.2.2 Linkages of identifiers
+
An identifier declared in different scopes or in the same scope more than once can be made to refer to the same object or function by a process called linkage.29) There are @@ -2514,7 +2514,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
31) As specified in 6.2.1, the later declaration might hide the prior declaration.
-6.2.3 Name spaces of identifiers
+
If more than one declaration of a particular identifier is visible at any point in a translation unit, the syntactic context disambiguates uses that refer to different entities. @@ -2539,7 +2539,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
32) There is only one name space for tags even though three are possible.
-6.2.4 Storage durations of objects
+
An object has a storage duration that determines its lifetime. There are four storage durations: static, thread, automatic, and allocated. Allocated storage is described in @@ -2610,7 +2610,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
36) The address of such an object is taken implicitly when an array member is accessed.
-6.2.5 Types
+
The meaning of a value stored in an object or returned by a function is determined by the type of the expression used to access it. (An identifier declared to be an object is the @@ -2786,7 +2786,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. include the atomic types.
A pointer to void shall have the same representation and alignment requirements as a
- pointer to a character type.48) Similarly, pointers to qualified or unqualified versions of
+ pointer to a character type.48) Similarly, pointers to qualified or unqualified versions of
compatible types shall have the same representation and alignment requirements. All
pointers to structure types shall have the same representation and alignment requirements
as each other. All pointers to union types shall have the same representation and
@@ -2846,9 +2846,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
arguments to functions, return values from functions, and members of unions.
-6.2.6 Representations of types
+
The representations of all types are unspecified except as stated in this subclause.
@@ -2922,7 +2922,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
on values of type T may distinguish between them.
-6.2.6.2 Integer types
+
For unsigned integer types other than unsigned char, the bits of the object
representation shall be divided into two groups: value bits and padding bits (there need
@@ -2995,7 +2995,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
bits.
-6.2.7 Compatible type and composite type
+
Two types have compatible type if their types are the same. Additional rules for determining whether two types are compatible are described in 6.7.2 for type specifiers, @@ -3065,7 +3065,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
56) As specified in 6.2.1, the later declaration might hide the prior declaration.
-6.2.8 Alignment of objects
+
Complete object types have alignment requirements which place restrictions on the
addresses at which objects of that type may be allocated. An alignment is an
@@ -3112,7 +3112,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
alignment has been applied.
-6.3 Conversions
+
Several operators convert operand values from one type to another automatically. This subclause specifies the result required from such an implicit conversion, as well as those @@ -3124,9 +3124,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. representation.
Forward references: cast operators (6.5.4).
-6.3.1 Arithmetic operands
+
Every integer type has an integer conversion rank defined as follows:
When any scalar value is converted to _Bool, the result is 0 if the value compares equal to 0; otherwise, the result is 1.59) @@ -3186,7 +3186,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
59) NaNs do not compare equal to 0 and thus convert to 1.
-6.3.1.3 Signed and unsigned integers
+
When a value with integer type is converted to another integer type other than _Bool, if the value can be represented by the new type, it is unchanged. @@ -3202,7 +3202,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
60) The rules describe arithmetic on the mathematical value, not the value of a given type of expression.
-6.3.1.4 Real floating and integer
+
When a finite value of real floating type is converted to an integer type other than _Bool,
the fractional part is discarded (i.e., the value is truncated toward zero). If the value of
@@ -3226,7 +3226,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
range of portable real floating values is (-1, Utype_MAX+1).
-6.3.1.5 Real floating types
+
When a value of real floating type is converted to a real floating type, if the value being
converted can be represented exactly in the new type, it is unchanged. If the value being
@@ -3237,12 +3237,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
conversions (6.3.1.8, 6.8.6.4) may be represented in greater precision and range than that
required by the new type.
-6.3.1.6 Complex types
+
When a value of complex type is converted to another complex type, both the real and
imaginary parts follow the conversion rules for the corresponding real types.
-6.3.1.7 Real and complex
+
When a value of real type is converted to a complex type, the real part of the complex
result value is determined by the rules of conversion to the corresponding real type and
@@ -3252,7 +3252,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
complex value is discarded and the value of the real part is converted according to the
conversion rules for the corresponding real type.
-6.3.1.8 Usual arithmetic conversions
+
Many operators that expect operands of arithmetic type cause conversions and yield result types in a similar way. The purpose is to determine a common real type for the operands @@ -3305,9 +3305,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
63) The cast and assignment operators are still required to remove extra range and precision.
-6.3.2 Other operands
+
An lvalue is an expression (with an object type other than void) that potentially
designates an object;64) if an lvalue does not designate an object when it is evaluated, the
@@ -3361,7 +3361,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
designator and violates the constraint in 6.5.3.4.
-6.3.2.2 void
+
The (nonexistent) value of a void expression (an expression that has type void) shall not
be used in any way, and implicit or explicit conversions (except to void) shall not be
@@ -3369,7 +3369,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
expression, its value or designator is discarded. (A void expression is evaluated for its
side effects.)
-6.3.2.3 Pointers
+
A pointer to void may be converted to or from a pointer to any object type. A pointer to
any object type may be converted to a pointer to void and back again; the result shall
@@ -3431,7 +3431,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
correctly aligned for a pointer to type C.
-6.4 Lexical elements
+
@@ -3503,7 +3503,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. occur in source files. -6.4.1 Keywords
+6.4.1 Keywords
Syntax
@@ -3534,9 +3534,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.70) One possible specification for imaginary types appears in annex G. -
6.4.2 Identifiers
+6.4.2 Identifiers
-6.4.2.1 General
+6.4.2.1 General
Syntax
@@ -3576,7 +3576,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. When preprocessing tokens are converted to tokens during translation phase 7, if a preprocessing token could be converted to either a keyword or an identifier, it is converted to a keyword. - Implementation limits +Implementation limits
As discussed in 5.2.4.1, an implementation may limit the number of significant initial characters in an identifier; the limit for an external name (an identifier that has external @@ -3595,7 +3595,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Extended characters may produce a long external identifier. -
6.4.2.2 Predefined identifiers
+6.4.2.2 Predefined identifiers
Semantics
The identifier __func__ shall be implicitly declared by the translator as if, @@ -3632,7 +3632,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. identifier is explicitly declared using the name __func__, the behavior is undefined. -
6.4.3 Universal character names
+6.4.3 Universal character names
Syntax
@@ -3672,7 +3672,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.74) Short identifiers for characters were first specified in ISO/IEC 10646-1/AMD9:1997. -
6.4.4 Constants
+6.4.4 Constants
Syntax
@@ -3689,7 +3689,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Each constant has a type, determined by its form and value, as detailed later. -
6.4.4.1 Integer constants
+6.4.4.1 Integer constants
Syntax
@@ -3788,7 +3788,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. its list and has no extended integer type, then the integer constant has no type. -
6.4.4.2 Floating constants
+6.4.4.2 Floating constants
Syntax
@@ -3856,7 +3856,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. conversion of a floating constant shall not raise an exceptional condition or a floating- point exception at execution time. All floating constants of the same source form75) shall convert to the same internal format with the same value. - Recommended practice +
Recommended practice
The implementation should produce a diagnostic message if a hexadecimal constant cannot be represented exactly in its evaluation format; the implementation should then @@ -3877,7 +3877,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. floating constants (see 7.22.1.3). -
6.4.4.3 Enumeration constants
+6.4.4.3 Enumeration constants
Syntax
@@ -3888,7 +3888,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. An identifier declared as an enumeration constant has type int.Forward references: enumeration specifiers (6.7.2.2). -
6.4.4.4 Character constants
+6.4.4.4 Character constants
Syntax
@@ -4030,7 +4030,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the result is not a token and a diagnostic is required. See ''future language directions'' (6.11.4). -
6.4.5 String literals
+6.4.5 String literals
Syntax
@@ -4135,7 +4135,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. \0 escape sequence. -6.4.6 Punctuators
+6.4.6 Punctuators
Syntax
@@ -4173,7 +4173,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. interchanged. -6.4.7 Header names
+6.4.7 Header names
Syntax
@@ -4228,7 +4228,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.82) For an example of a header name preprocessing token used in a #pragma directive, see 6.10.9. -
6.4.8 Preprocessing numbers
+6.4.8 Preprocessing numbers
Syntax
@@ -4258,7 +4258,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -6.4.9 Comments
+6.4.9 Comments
Except within a character constant, a string literal, or a comment, the characters /* introduce a comment. The contents of such a comment are examined only to identify @@ -4294,7 +4294,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
83) Thus, /* ... */ comments do not nest. -
6.5 Expressions
+6.5 Expressions
An expression is a sequence of operators and operands that specifies computation of a value, or that designates an object or a function, or that generates side effects, or that @@ -4399,7 +4399,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. documented. -
6.5.1 Primary expressions
+6.5.1 Primary expressions
Syntax
@@ -4430,7 +4430,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-91) Thus, an undeclared identifier is a violation of the syntax. -
6.5.1.1 Generic selection
+6.5.1.1 Generic selection
Syntax
@@ -4475,7 +4475,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. )(X)-6.5.2 Postfix operators
+6.5.2 Postfix operators
Syntax
@@ -4494,7 +4494,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. assignment-expression argument-expression-list , assignment-expression
6.5.2.1 Array subscripting
+6.5.2.1 Array subscripting
Constraints
One of the expressions shall have type ''pointer to complete object type'', the other @@ -4530,7 +4530,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Forward references: additive operators (6.5.6), address and indirection operators (6.5.3.2), array declarators (6.7.6.2). -
6.5.2.2 Function calls
+6.5.2.2 Function calls
Constraints
The expression that denotes the called function92) shall have type pointer to function @@ -4622,7 +4622,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
94) In other words, function executions do not ''interleave'' with each other. -
6.5.2.3 Structure and union members
+6.5.2.3 Structure and union members
Constraints
The first operand of the . operator shall have an atomic, qualified, or unqualified @@ -4740,7 +4740,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. can be safely accessed using a non-atomic object which is assigned to or from the atomic object. -
6.5.2.4 Postfix increment and decrement operators
+6.5.2.4 Postfix increment and decrement operators
Constraints
The operand of the postfix increment or decrement operator shall have atomic, qualified, @@ -4775,7 +4775,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. with result being the result of the operation. -
6.5.2.5 Compound literals
+6.5.2.5 Compound literals
Constraints
The type name shall specify a complete object type or an array of unknown size, but not a @@ -4906,7 +4906,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the same or overlapping representations. -
6.5.3 Unary operators
+6.5.3 Unary operators
Syntax
@@ -4921,7 +4921,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. unary-operator: one of & * + - ~ !-6.5.3.1 Prefix increment and decrement operators
+6.5.3.1 Prefix increment and decrement operators
Constraints
The operand of the prefix increment or decrement operator shall have atomic, qualified, @@ -4937,7 +4937,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. operand is decremented.
Forward references: additive operators (6.5.6), compound assignment (6.5.16.2). -
6.5.3.2 Address and indirection operators
+6.5.3.2 Address and indirection operators
Constraints
The operand of the unary & operator shall be either a function designator, the result of a @@ -4975,7 +4975,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. end of its lifetime. -
6.5.3.3 Unary arithmetic operators
+6.5.3.3 Unary arithmetic operators
Constraints
The operand of the unary + or - operator shall have arithmetic type; of the ~ operator, @@ -5002,7 +5002,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
6.5.3.4 The sizeof and alignof operators
+6.5.3.4 The sizeof and alignof operators
Constraints
The sizeof operator shall not be applied to an expression that has function type or an @@ -5074,7 +5074,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. size of the adjusted (pointer) type (see 6.9.1). -
6.5.4 Cast operators
+6.5.4 Cast operators
Syntax
@@ -5111,7 +5111,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. unqualified version of the type. -6.5.5 Multiplicative operators
+6.5.5 Multiplicative operators
Syntax
@@ -5143,7 +5143,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.105) This is often called ''truncation toward zero''. -
6.5.6 Additive operators
+6.5.6 Additive operators
Syntax
@@ -5245,7 +5245,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. element'' requirements. -6.5.7 Bitwise shift operators
+6.5.7 Bitwise shift operators
Syntax
@@ -5275,7 +5275,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. part of the quotient of E1 / 2E2 . If E1 has a signed type and a negative value, the resulting value is implementation-defined. -6.5.8 Relational operators
+6.5.8 Relational operators
Syntax
@@ -5324,7 +5324,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. means (a<b)<c; in other words, ''if a is less than b, compare 1 to c; otherwise, compare 0 to c''. -6.5.9 Equality operators
+6.5.9 Equality operators
Syntax
@@ -5385,7 +5385,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. behavior. -6.5.10 Bitwise AND operator
+6.5.10 Bitwise AND operator
Syntax
@@ -5408,7 +5408,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -6.5.11 Bitwise exclusive OR operator
+6.5.11 Bitwise exclusive OR operator
Syntax
@@ -5426,7 +5426,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. in the result is set if and only if exactly one of the corresponding bits in the converted operands is set). -6.5.12 Bitwise inclusive OR operator
+6.5.12 Bitwise inclusive OR operator
Syntax
@@ -5445,7 +5445,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. operands is set). -6.5.13 Logical AND operator
+6.5.13 Logical AND operator
Syntax
@@ -5465,7 +5465,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the first and second operands. If the first operand compares equal to 0, the second operand is not evaluated. -6.5.14 Logical OR operator
+6.5.14 Logical OR operator
Syntax
@@ -5486,7 +5486,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. not evaluated. -6.5.15 Conditional operator
+6.5.15 Conditional operator
Syntax
@@ -5558,7 +5558,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.110) A conditional expression does not yield an lvalue. -
6.5.16 Assignment operators
+6.5.16 Assignment operators
Syntax
@@ -5589,7 +5589,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. when the object has volatile-qualified type. -6.5.16.1 Simple assignment
+6.5.16.1 Simple assignment
Constraints
One of the following shall hold:112) @@ -5672,7 +5672,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. not volatile from the type int volatile * const). -
6.5.16.2 Compound assignment
+6.5.16.2 Compound assignment
Constraints
For the operators += and -= only, either the left operand shall be an atomic, qualified, or @@ -5707,7 +5707,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. with result being the result of the operation. -
6.5.17 Comma operator
+6.5.17 Comma operator
Syntax
@@ -5739,7 +5739,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.114) A comma operator does not yield an lvalue. -
6.6 Constant expressions
+6.6 Constant expressions
Syntax
@@ -5828,7 +5828,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the expression is a valid integer constant expression with value one. -6.7 Declarations
+6.7 Declarations
Syntax
@@ -5892,7 +5892,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.119) Function definitions have a different syntax, described in 6.9.1. -
6.7.1 Storage-class specifiers
+6.7.1 Storage-class specifiers
Syntax
@@ -5946,7 +5946,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. register is sizeof. -6.7.2 Type specifiers
+6.7.2 Type specifiers
Syntax
@@ -6018,7 +6018,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: atomic type specifiers (6.7.2.4), enumeration specifiers (6.7.2.2), structure and union specifiers (6.7.2.1), tags (6.7.2.3), type definitions (6.7.8). -
6.7.2.1 Structure and union specifiers
+6.7.2.1 Structure and union specifiers
Syntax
@@ -6247,7 +6247,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. layouts. -6.7.2.2 Enumeration specifiers
+6.7.2.2 Enumeration specifiers
Syntax
@@ -6308,7 +6308,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. been seen. -occurs other than as part of one of the above forms, and no other declaration of the identifier as a tag is visible, then it declares an incomplete structure or union type, and - declares the identifier as the tag of that type.131) + declares the identifier as the tag of that type.131)6.7.2.3 Tags
+6.7.2.3 Tags
Constraints
A specific type shall have its content defined at most once. @@ -6360,7 +6360,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. struct-or-union identifier
If a type specifier of the form
@@ -6431,7 +6431,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.131) A similar construction with enum does not exist. -
6.7.2.4 Atomic type specifiers
+6.7.2.4 Atomic type specifiers
Syntax
@@ -6451,7 +6451,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. interpreted as a type specifier (with a type name), not as a type qualifier. -6.7.3 Type qualifiers
+6.7.3 Type qualifiers
Syntax
@@ -6563,7 +6563,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.136) Both of these can occur through the use of typedefs. -
6.7.3.1 Formal definition of restrict
+6.7.3.1 Formal definition of restrict
Let D be a declaration of an ordinary identifier that provides a means of designating an object P as a restrict-qualified pointer to type T. @@ -6680,7 +6680,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. expressions *p and p[1] are not. -
6.7.4 Function specifiers
+6.7.4 Function specifiers
Syntax
@@ -6722,7 +6722,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function uses the inline definition or the external definition.140)A function declared with a _Noreturn function specifier shall not return to its caller. - Recommended practice +
Recommended practice
The implementation should produce a diagnostic message for a function declared with a _Noreturn function specifier that appears to be capable of returning to its caller. @@ -6785,7 +6785,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. duration are also distinct in each of the definitions. -
6.7.5 Alignment specifier
+6.7.5 Alignment specifier
Syntax
@@ -6829,7 +6829,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. declaration. -6.7.6 Declarators
+6.7.6 Declarators
Syntax
@@ -6893,14 +6893,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. then ident has the type specified by the declaration ''T D''. Thus, a declarator in parentheses is identical to the unparenthesized declarator, but the binding of complicated declarators may be altered by parentheses. - Implementation limits +Implementation limits
As discussed in 5.2.4.1, an implementation may limit the number of pointer, array, and function declarators that modify an arithmetic, structure, union, or void type, either directly or via one or more typedefs.
Forward references: array declarators (6.7.6.2), type definitions (6.7.8). -
6.7.6.1 Pointer declarators
+6.7.6.1 Pointer declarators
Semantics
If, in the declaration ''T D1'', D1 has the form @@ -6932,7 +6932,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. declares constant_ptr as an object that has type ''const-qualified pointer to int''. -
6.7.6.2 Array declarators
+6.7.6.2 Array declarators
Constraints
In addition to optional type qualifiers and the keyword static, the [ and ] may delimit @@ -7053,7 +7053,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
143) Thus, * can be used only in function declarations that are not definitions (see 6.7.6.3). -
6.7.6.3 Function declarators (including prototypes)
+6.7.6.3 Function declarators (including prototypes)
Constraints
A function declarator shall not specify a return type that is a function type or an array @@ -7219,7 +7219,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
146) If both function types are ''old style'', parameter types are not compared. -
6.7.7 Type names
+6.7.7 Type names
Syntax
@@ -7271,7 +7271,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. parameter specification'', rather than redundant parentheses around the omitted identifier. -6.7.8 Type definitions
+6.7.8 Type definitions
Syntax
@@ -7369,7 +7369,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. a[i-1] = b[i]; }-6.7.9 Initialization
+6.7.9 Initialization
Syntax
@@ -7686,7 +7686,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.152) In particular, the evaluation order need not be the same as the order of subobject initialization. -
6.7.10 Static assertions
+6.7.10 Static assertions
Syntax
@@ -7705,7 +7705,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: diagnostics (7.2). -
6.8 Statements and blocks
+6.8 Statements and blocks
Syntax
@@ -7738,7 +7738,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: expression and null statements (6.8.3), selection statements (6.8.4), iteration statements (6.8.5), the return statement (6.8.6.4). -
6.8.1 Labeled statements
+6.8.1 Labeled statements
Syntax
@@ -7760,7 +7760,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. them.Forward references: the goto statement (6.8.6.1), the switch statement (6.8.4.2). -
6.8.2 Compound statement
+6.8.2 Compound statement
Syntax
@@ -7776,7 +7776,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.A compound statement is a block. -
6.8.3 Expression and null statements
+6.8.3 Expression and null statements
Syntax
@@ -7831,7 +7831,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.153) Such as assignments, and function calls which have side effects. -
6.8.4 Selection statements
+6.8.4 Selection statements
Syntax
@@ -7848,7 +7848,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. enclosing block. Each associated substatement is also a block whose scope is a strict subset of the scope of the selection statement. -6.8.4.1 The if statement
+6.8.4.1 The if statement
Constraints
The controlling expression of an if statement shall have scalar type. @@ -7863,7 +7863,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. An else is associated with the lexically nearest preceding if that is allowed by the syntax. -
6.8.4.2 The switch statement
+6.8.4.2 The switch statement
Constraints
The controlling expression of a switch statement shall have integer type. @@ -7892,7 +7892,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. a default label, control jumps to the labeled statement. If no converted case constant expression matches and there is no default label, no part of the switch body is executed. - Implementation limits +
Implementation limits
As discussed in 5.2.4.1, the implementation may limit the number of case values in a switch statement. @@ -7924,7 +7924,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. default label associated with the switch that is in the block containing the declaration. -
6.8.5 Iteration statements
+6.8.5 Iteration statements
Syntax
@@ -7967,17 +7967,17 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. termination cannot be proven. -expands to _Static_assert. -6.8.5.1 The while statement
+6.8.5.1 The while statement
The evaluation of the controlling expression takes place before each execution of the loop body. -
6.8.5.2 The do statement
+6.8.5.2 The do statement
The evaluation of the controlling expression takes place after each execution of the loop body. -
6.8.5.3 The for statement
+6.8.5.3 The for statement
The statement
@@ -8000,7 +8000,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. specifies an operation (such as incrementing) that is performed after each iteration. -__STDC__ The integer constant 1, intended to indicate a conforming implementation. __STDC_HOSTED__ The integer constant 1 if the implementation is a hosted6.8.6 Jump statements
+6.8.6 Jump statements
Syntax
@@ -8018,7 +8018,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-A jump statement causes an unconditional jump to another place. -
6.8.6.1 The goto statement
+6.8.6.1 The goto statement
Constraints
The identifier in a goto statement shall name a label located somewhere in the enclosing @@ -8073,7 +8073,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. goto lab4; // invalid: going INTO scope of VLA.
6.8.6.2 The continue statement
+6.8.6.2 The continue statement
Constraints
A continue statement shall appear only in or as a loop body. @@ -8096,7 +8096,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
159) Following the contin: label is a null statement. -
6.8.6.3 The break statement
+6.8.6.3 The break statement
Constraints
A break statement shall appear only in or as a switch body or loop body. @@ -8109,7 +8109,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
6.8.6.4 The return statement
+6.8.6.4 The return statement
Constraints
A return statement with an expression shall not appear in a function whose return type @@ -8158,7 +8158,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. or precision than implied by the type; a cast may be used to remove this extra range and precision. -
6.9 External definitions
+6.9 External definitions
Syntax
@@ -8203,7 +8203,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. external definition for it. -has no effect. -6.9.1 Function definitions
+6.9.1 Function definitions
Syntax
@@ -8336,7 +8336,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-164) A parameter identifier cannot be redeclared in the function body except in an enclosed block. -
6.9.2 External object definitions
+6.9.2 External object definitions
Semantics
If the declaration of an identifier for an object has file scope and an initializer, the @@ -8380,7 +8380,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. zero on program startup. -
6.10 Preprocessing directives
+6.10 Preprocessing directives
Syntax
@@ -8486,7 +8486,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. # character string literal creation operator in 6.10.3.2, for example). -
6.10.1 Conditional inclusion
+6.10.1 Conditional inclusion
Constraints
The expression that controls conditional inclusion shall be an integer constant expression @@ -8576,7 +8576,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. including within a preprocessing directive. -
6.10.2 Source file inclusion
+6.10.2 Source file inclusion
Constraints
A #include directive shall identify a header or source file that can be processed by the @@ -8655,7 +8655,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. phases in 5.1.1.2); thus, an expansion that results in two string literals is an invalid directive. -
6.10.3 Macro replacement
+6.10.3 Macro replacement
Constraints
Two replacement lists are identical if and only if the preprocessing tokens in both have @@ -8745,7 +8745,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
172) Despite the name, a non-directive is a preprocessing directive. -
6.10.3.1 Argument substitution
+6.10.3.1 Argument substitution
After the arguments for the invocation of a function-like macro have been identified, argument substitution takes place. A parameter in the replacement list, unless preceded @@ -8759,7 +8759,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. were a parameter, and the variable arguments shall form the preprocessing tokens used to replace it. -
6.10.3.2 The # operator
+6.10.3.2 The # operator
Constraints
Each # preprocessing token in the replacement list for a function-like macro shall be @@ -8783,7 +8783,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. ## operators is unspecified. -
6.10.3.3 The ## operator
+6.10.3.3 The ## operator
Constraints
A ## preprocessing token shall not occur at the beginning or at the end of a replacement @@ -8833,7 +8833,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. exist only within translation phase 4. -
6.10.3.4 Rescanning and further replacement
+6.10.3.4 Rescanning and further replacement
After all parameters in the replacement list have been substituted and # and ## processing has taken place, all placemarker preprocessing tokens are removed. The @@ -8851,7 +8851,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. as a preprocessing directive even if it resembles one, but all pragma unary operator expressions within it are then processed as specified in 6.10.9 below. -
6.10.3.5 Scope of macro definitions
+6.10.3.5 Scope of macro definitions
A macro definition lasts (independent of block structure) until a corresponding #undef directive is encountered or (if none is encountered) until the end of the preprocessing @@ -8995,7 +8995,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. printf("x is %d but y is %d", x, y));
6.10.4 Line control
+6.10.4 Line control
Constraints
The string literal of a #line directive, if present, shall be a character string literal. @@ -9029,7 +9029,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. previous forms and is then processed as appropriate. -
6.10.5 Error directive
+6.10.5 Error directive
Semantics
A preprocessing directive of the form @@ -9038,7 +9038,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. causes the implementation to produce a diagnostic message that includes the specified sequence of preprocessing tokens. -
6.10.6 Pragma directive
+6.10.6 Pragma directive
Semantics
A preprocessing directive of the form @@ -9078,7 +9078,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
175) See ''future language directions'' (6.11.8). -
6.10.7 Null directive
+6.10.7 Null directive
Semantics
A preprocessing directive of the form @@ -9086,7 +9086,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. # new-line
6.10.8 Predefined macro names
+6.10.8 Predefined macro names
The values of the predefined macros listed in the following subclauses176) (except for __FILE__ and __LINE__) remain constant throughout the translation unit. @@ -9104,7 +9104,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
176) See ''future language directions'' (6.11.9). -
6.10.8.1 Mandatory macros
+6.10.8.1 Mandatory macros
The following macro names shall be defined by the implementation: __DATE__ The date of translation of the preprocessing translation unit: a character @@ -9117,7 +9117,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. __FILE__ The presumed name of the current source file (a character string literal).177) __LINE__ The presumed line number (within the current source file) of the current
- source line (an integer constant).177)+ source line (an integer constant).177)@@ -9144,7 +9144,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Standard. --6.10.8.2 Environment macros
+6.10.8.2 Environment macros
The following macro names are conditionally defined by the implementation: __STDC_ISO_10646__ An integer constant of the form yyyymmL (for example, @@ -9178,7 +9178,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
6.10.8.3 Conditional feature macros
+6.10.8.3 Conditional feature macros
The following macro names are conditionally defined by the implementation: __STDC_ANALYZABLE__ The integer constant 1, intended to indicate conformance to @@ -9216,7 +9216,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. each revision of this International Standard. -
6.10.9 Pragma operator
+6.10.9 Pragma operator
Semantics
A unary operator expression of the form: @@ -9247,58 +9247,58 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. #define PRAGMA(x) _Pragma(#x) LISTING ( ..\listing.dir )
6.11 Future language directions
+6.11 Future language directions
-6.11.1 Floating types
+6.11.1 Floating types
Future standardization may include additional floating-point types, including those with greater range, precision, or both than long double. -
6.11.2 Linkages of identifiers
+6.11.2 Linkages of identifiers
Declaring an identifier with internal linkage at file scope without the static storage- class specifier is an obsolescent feature. -
6.11.3 External names
+6.11.3 External names
Restriction of the significance of an external name to fewer than 255 characters (considering each universal character name or extended source character as a single character) is an obsolescent feature that is a concession to existing implementations. -
6.11.4 Character escape sequences
+6.11.4 Character escape sequences
Lowercase letters as escape sequences are reserved for future standardization. Other characters may be used in extensions. -
6.11.5 Storage-class specifiers
+6.11.5 Storage-class specifiers
The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. -
6.11.6 Function declarators
+6.11.6 Function declarators
The use of function declarators with empty parentheses (not prototype-format parameter type declarators) is an obsolescent feature. -
6.11.7 Function definitions
+6.11.7 Function definitions
The use of function definitions with separate parameter identifier and declaration lists (not prototype-format parameter type and identifier declarators) is an obsolescent feature. -
6.11.8 Pragma directives
+6.11.8 Pragma directives
Pragmas whose first preprocessing token is STDC are reserved for future standardization. -
6.11.9 Predefined macro names
+6.11.9 Predefined macro names
Macro names beginning with __STDC_ are reserved for future standardization. -
7. Library
+7. Library
-7.1 Introduction
+7.1 Introduction
-7.1.1 Definitions of terms
+7.1.1 Definitions of terms
A string is a contiguous sequence of characters terminated by and including the first null character. The term multibyte string is sometimes used instead to emphasize special @@ -9341,7 +9341,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. implementation's choice. -
7.1.2 Standard headers
+7.1.2 Standard headers
Each library function is declared, with a type that includes a prototype, in a header,182) whose contents are made available by the #include preprocessing directive. The @@ -9396,7 +9396,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. implementations need not support; see 6.10.8.3. -
7.1.3 Reserved identifiers
+7.1.3 Reserved identifiers
Each header declares or defines all identifiers listed in its associated subclause, and optionally declares or defines identifiers listed in its associated future library directions @@ -9435,7 +9435,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. va_copy, and va_end. -
7.1.4 Use of library functions
+7.1.4 Use of library functions
Each of the following statements applies unless explicitly stated otherwise in the detailed descriptions that follow: If an argument to a function has an invalid value (such as a value @@ -9554,7 +9554,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
190) This allows implementations to parallelize operations if there are no visible side effects. -
7.2 Diagnostics
+7.2 Diagnostics
The header <assert.h> defines the assert and static_assert macros and refers to another macro, @@ -9577,9 +9577,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. static_assert
7.2.1 Program diagnostics
+7.2.1 Program diagnostics
-7.2.1.1 The assert macro
+7.2.1.1 The assert macro
Synopsis
@@ -9610,9 +9610,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Assertion failed: expression, function abc, file xyz, line nnn. -7.3 Complex arithmetic
+7.3 Complex arithmetic
-7.3.1 Introduction
+7.3.1 Introduction
The header <complex.h> defines macros and declares functions that support complex arithmetic.192) @@ -9664,12 +9664,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
194) A specification for imaginary types is in informative annex G. -
7.3.2 Conventions
+7.3.2 Conventions
Values are interpreted as radians, not degrees. An implementation may set errno but is not required to. -
7.3.3 Branch cuts
+7.3.3 Branch cuts
Some of the functions below have branch cuts, across which the function is discontinuous. For implementations with a signed zero (including all IEC 60559 @@ -9688,7 +9688,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the finite endpoint of the cut along the negative real axis approaches the cut from above, so the cut maps to the positive imaginary axis. -
7.3.4 The CX_LIMITED_RANGE pragma
+7.3.4 The CX_LIMITED_RANGE pragma
Synopsis
@@ -9723,9 +9723,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. where the programmer can determine they are safe. -7.3.5 Trigonometric functions
+7.3.5 Trigonometric functions
-7.3.5.1 The cacos functions
+7.3.5.1 The cacos functions
Synopsis
@@ -9743,7 +9743,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. mathematically unbounded along the imaginary axis and in the interval [0, pi ] along the real axis. -7.3.5.2 The casin functions
+7.3.5.2 The casin functions
Synopsis
@@ -9763,7 +9763,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. along the real axis. -7.3.5.3 The catan functions
+7.3.5.3 The catan functions
Synopsis
@@ -9781,7 +9781,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. mathematically unbounded along the imaginary axis and in the interval [-pi /2, +pi /2] along the real axis. -7.3.5.4 The ccos functions
+7.3.5.4 The ccos functions
Synopsis
@@ -9796,7 +9796,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The ccos functions return the complex cosine value. -
7.3.5.5 The csin functions
+7.3.5.5 The csin functions
Synopsis
@@ -9812,7 +9812,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The csin functions return the complex sine value. -
7.3.5.6 The ctan functions
+7.3.5.6 The ctan functions
Synopsis
@@ -9827,9 +9827,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The ctan functions return the complex tangent value. -
7.3.6 Hyperbolic functions
+7.3.6 Hyperbolic functions
-7.3.6.1 The cacosh functions
+7.3.6.1 The cacosh functions
Synopsis
@@ -9847,7 +9847,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. half-strip of nonnegative values along the real axis and in the interval [-ipi , +ipi ] along the imaginary axis. -7.3.6.2 The casinh functions
+7.3.6.2 The casinh functions
Synopsis
@@ -9866,7 +9866,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. strip mathematically unbounded along the real axis and in the interval [-ipi /2, +ipi /2] along the imaginary axis. -
7.3.6.3 The catanh functions
+7.3.6.3 The catanh functions
Synopsis
@@ -9884,7 +9884,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. strip mathematically unbounded along the real axis and in the interval [-ipi /2, +ipi /2] along the imaginary axis. -7.3.6.4 The ccosh functions
+7.3.6.4 The ccosh functions
Synopsis
@@ -9900,7 +9900,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The ccosh functions return the complex hyperbolic cosine value. -7.3.6.5 The csinh functions
+7.3.6.5 The csinh functions
Synopsis
@@ -9915,7 +9915,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The csinh functions return the complex hyperbolic sine value. -
7.3.6.6 The ctanh functions
+7.3.6.6 The ctanh functions
Synopsis
@@ -9930,9 +9930,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The ctanh functions return the complex hyperbolic tangent value. -
7.3.7 Exponential and logarithmic functions
+7.3.7 Exponential and logarithmic functions
-7.3.7.1 The cexp functions
+7.3.7.1 The cexp functions
Synopsis
@@ -9948,7 +9948,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The cexp functions return the complex base-e exponential value. -7.3.7.2 The clog functions
+7.3.7.2 The clog functions
Synopsis
@@ -9966,9 +9966,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. mathematically unbounded along the real axis and in the interval [-ipi , +ipi ] along the imaginary axis. -7.3.8 Power and absolute-value functions
+7.3.8 Power and absolute-value functions
-7.3.8.1 The cabs functions
+7.3.8.1 The cabs functions
Synopsis
@@ -9984,7 +9984,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The cabs functions return the complex absolute value. -
7.3.8.2 The cpow functions
+7.3.8.2 The cpow functions
Synopsis
@@ -10002,7 +10002,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The cpow functions return the complex power function value. -
7.3.8.3 The csqrt functions
+7.3.8.3 The csqrt functions
Synopsis
@@ -10019,9 +10019,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The csqrt functions return the complex square root value, in the range of the right half- plane (including the imaginary axis). -7.3.9 Manipulation functions
+7.3.9 Manipulation functions
-7.3.9.1 The carg functions
+7.3.9.1 The carg functions
Synopsis
@@ -10038,7 +10038,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The carg functions return the value of the argument in the interval [-pi , +pi ]. -7.3.9.2 The cimag functions
+7.3.9.2 The cimag functions
Synopsis
@@ -10057,7 +10057,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.196) For a variable z of complex type, z == creal(z) + cimag(z)*I. -
7.3.9.3 The CMPLX macros
+7.3.9.3 The CMPLX macros
Synopsis
@@ -10070,7 +10070,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The CMPLX macros expand to an expression of the specified complex type, with the real part having the (converted) value of x and the imaginary part having the (converted) value of y. - Recommended practice +Recommended practice
The resulting expression should be suitable for use as an initializer for an object with static or thread storage duration, provided both arguments are likewise suitable. @@ -10092,7 +10092,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
7.3.9.4 The conj functions
+7.3.9.4 The conj functions
Synopsis
@@ -10108,7 +10108,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The conj functions return the complex conjugate value. -
7.3.9.5 The cproj functions
+7.3.9.5 The cproj functions
Synopsis
@@ -10128,7 +10128,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The cproj functions return the value of the projection onto the Riemann sphere. -
7.3.9.6 The creal functions
+7.3.9.6 The creal functions
Synopsis
@@ -10153,7 +10153,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.197) For a variable z of complex type, z == creal(z) + cimag(z)*I. -
7.4 Character handling
+7.4 Character handling
The header <ctype.h> declares several functions useful for classifying and mapping characters.198) In all cases the argument is an int, the value of which shall be @@ -10177,12 +10177,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. values lie from 0 (NUL) through 0x1F (US), and the character 0x7F (DEL). -
7.4.1 Character classification functions
+7.4.1 Character classification functions
The functions in this subclause return nonzero (true) if and only if the value of the argument c conforms to that in the description of the function. -
7.4.1.1 The isalnum function
+7.4.1.1 The isalnum function
Synopsis
@@ -10192,7 +10192,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isalnum function tests for any character for which isalpha or isdigit is true. -
7.4.1.2 The isalpha function
+7.4.1.2 The isalpha function
Synopsis
@@ -10214,7 +10214,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. characters; all four combinations are possible. -7.4.1.3 The isblank function
+7.4.1.3 The isblank function
Synopsis
@@ -10228,7 +10228,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. space (' '), and horizontal tab ('\t'). In the "C" locale, isblank returns true only for the standard blank characters. -7.4.1.4 The iscntrl function
+7.4.1.4 The iscntrl function
Synopsis
@@ -10238,7 +10238,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The iscntrl function tests for any control character. -
7.4.1.5 The isdigit function
+7.4.1.5 The isdigit function
Synopsis
@@ -10248,7 +10248,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isdigit function tests for any decimal-digit character (as defined in 5.2.1). -
7.4.1.6 The isgraph function
+7.4.1.6 The isgraph function
Synopsis
@@ -10263,7 +10263,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isgraph function tests for any printing character except space (' '). -
7.4.1.7 The islower function
+7.4.1.7 The islower function
Synopsis
@@ -10276,7 +10276,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. isspace is true. In the "C" locale, islower returns true only for the lowercase letters (as defined in 5.2.1). -7.4.1.8 The isprint function
+7.4.1.8 The isprint function
Synopsis
@@ -10286,7 +10286,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isprint function tests for any printing character including space (' '). -
7.4.1.9 The ispunct function
+7.4.1.9 The ispunct function
Synopsis
@@ -10299,7 +10299,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. locale, ispunct returns true for every printing character for which neither isspace nor isalnum is true. -7.4.1.10 The isspace function
+7.4.1.10 The isspace function
Synopsis
@@ -10314,7 +10314,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. ('\n'), carriage return ('\r'), horizontal tab ('\t'), and vertical tab ('\v'). In the "C" locale, isspace returns true only for the standard white-space characters. -7.4.1.11 The isupper function
+7.4.1.11 The isupper function
Synopsis
@@ -10327,7 +10327,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. isspace is true. In the "C" locale, isupper returns true only for the uppercase letters (as defined in 5.2.1). -7.4.1.12 The isxdigit function
+7.4.1.12 The isxdigit function
Synopsis
@@ -10337,9 +10337,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isxdigit function tests for any hexadecimal-digit character (as defined in 6.4.4.1). -
7.4.2 Character case mapping functions
+7.4.2 Character case mapping functions
-7.4.2.1 The tolower function
+7.4.2.1 The tolower function
Synopsis
@@ -10356,7 +10356,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. for any given locale); otherwise, the argument is returned unchanged. -7.4.2.2 The toupper function
+7.4.2.2 The toupper function
Synopsis
@@ -10373,7 +10373,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. for any given locale); otherwise, the argument is returned unchanged. -7.5 Errors
+7.5 Errors
The header <errno.h> defines several macros, all relating to the reporting of error conditions. @@ -10418,7 +10418,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
203) See ''future library directions'' (7.30.3). -
7.6 Floating-point environment
+7.6 Floating-point environment
The header <fenv.h> defines several macros, and declares types and functions that provide access to the floating-point environment. The floating-point environment refers @@ -10531,7 +10531,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. FLT_ROUNDS, they are not required to do so. -
7.6.1 The FENV_ACCESS pragma
+7.6.1 The FENV_ACCESS pragma
Synopsis
@@ -10593,7 +10593,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. ''off'', just one evaluation of x + 1 would suffice. -7.6.2 Floating-point exceptions
+7.6.2 Floating-point exceptions
The following functions provide access to the floating-point status flags.212) The int input argument for the functions represents a subset of floating-point exceptions, and can @@ -10609,7 +10609,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. content of flags. -
7.6.2.1 The feclearexcept function
+7.6.2.1 The feclearexcept function
Synopsis
@@ -10627,7 +10627,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.6.2.2 The fegetexceptflag function
+7.6.2.2 The fegetexceptflag function
Synopsis
@@ -10644,7 +10644,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fegetexceptflag function returns zero if the representation was successfully stored. Otherwise, it returns a nonzero value. -7.6.2.3 The feraiseexcept function
+7.6.2.3 The feraiseexcept function
Synopsis
@@ -10673,7 +10673,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. in F.8.6 is in the same spirit. -7.6.2.4 The fesetexceptflag function
+7.6.2.4 The fesetexceptflag function
Synopsis
@@ -10694,7 +10694,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. all the specified flags were successfully set to the appropriate state. Otherwise, it returns a nonzero value. -7.6.2.5 The fetestexcept function
+7.6.2.5 The fetestexcept function
Synopsis
@@ -10736,12 +10736,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.214) This mechanism allows testing several floating-point exceptions with just one function call. -
7.6.3 Rounding
+7.6.3 Rounding
The fegetround and fesetround functions provide control of rounding direction modes. -
7.6.3.1 The fegetround function
+7.6.3.1 The fegetround function
Synopsis
@@ -10756,7 +10756,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. representing the current rounding direction or a negative value if there is no such rounding direction macro or the current rounding direction is not determinable. -7.6.3.2 The fesetround function
+7.6.3.2 The fesetround function
Synopsis
@@ -10792,12 +10792,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. }-7.6.4 Environment
+7.6.4 Environment
The functions in this section manage the floating-point environment -- status flags and control modes -- as one entity. -
7.6.4.1 The fegetenv function
+7.6.4.1 The fegetenv function
Synopsis
@@ -10812,7 +10812,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fegetenv function returns zero if the environment was successfully stored. Otherwise, it returns a nonzero value. -7.6.4.2 The feholdexcept function
+7.6.4.2 The feholdexcept function
Synopsis
@@ -10837,7 +10837,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function to write routines that hide spurious floating-point exceptions from their callers. -7.6.4.3 The fesetenv function
+7.6.4.3 The fesetenv function
Synopsis
@@ -10855,7 +10855,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fesetenv function returns zero if the environment was successfully established. Otherwise, it returns a nonzero value. -7.6.4.4 The feupdateenv function
+7.6.4.4 The feupdateenv function
Synopsis
@@ -10898,7 +10898,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. return result; }-7.7 Characteristics of floating types
+7.7 Characteristics of floating types
The header <float.h> defines several macros that expand to various limits and parameters of the standard floating-point types. @@ -10907,7 +10907,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. in 5.2.4.2.2. -
7.8 Format conversion of integer types
+7.8 Format conversion of integer types
The header <inttypes.h> includes the header <stdint.h> and extends it with additional facilities provided by hosted implementations. @@ -10926,7 +10926,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
216) See ''future library directions'' (7.30.4). -
7.8.1 Macros for format specifiers
+7.8.1 Macros for format specifiers
Each of the following object-like macros expands to a character string literal containing a * conversion specifier, possibly modified by a length modifier, suitable for use within the @@ -10989,9 +10989,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. same. -
7.8.2 Functions for greatest-width integer types
+7.8.2 Functions for greatest-width integer types
-7.8.2.1 The imaxabs function
+7.8.2.1 The imaxabs function
Synopsis
@@ -11014,7 +11014,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.218) The absolute value of the most negative number cannot be represented in two's complement. -
7.8.2.2 The imaxdiv function
+7.8.2.2 The imaxdiv function
Synopsis
@@ -11031,7 +11031,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. quot (the quotient) and rem (the remainder), each of which has type intmax_t. If either part of the result cannot be represented, the behavior is undefined. -7.8.2.3 The strtoimax and strtoumax functions
+7.8.2.3 The strtoimax and strtoumax functions
Synopsis
@@ -11056,7 +11056,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. (7.22.1.4). -7.8.2.4 The wcstoimax and wcstoumax functions
+7.8.2.4 The wcstoimax and wcstoumax functions
Synopsis
@@ -11082,7 +11082,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. (7.28.4.1.2). --7.9 Alternative spellings
+7.9 Alternative spellings
The header <iso646.h> defines the following eleven macros (on the left) that expand to the corresponding tokens (on the right): @@ -11100,7 +11100,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. xor ^ xor_eq ^=
7.10 Sizes of integer types
+7.10 Sizes of integer types
The header <limits.h> defines several macros that expand to various limits and parameters of the standard integer types. @@ -11109,7 +11109,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. in 5.2.4.2.1. -
7.11 Localization
+7.11 Localization
The header <locale.h> declares two functions, one type, and defines several macros.
@@ -11166,9 +11166,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
220) See ''future library directions'' (7.30.5). -
7.11.1 Locale control
+7.11.1 Locale control
-7.11.1.1 The setlocale function
+7.11.1.1 The setlocale function
Synopsis
@@ -11231,9 +11231,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. locale when category has the value LC_ALL. -7.11.2 Numeric formatting convention inquiry
+7.11.2 Numeric formatting convention inquiry
-7.11.2.1 The localeconv function
+7.11.2.1 The localeconv function
Synopsis
@@ -11463,7 +11463,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. 3 +$1.25 +$ 1.25 + $1.25 4 $+1.25 $+ 1.25 $ +1.25-7.12 Mathematics
+7.12 Mathematics
The header <math.h> declares two types and many mathematical functions and defines several macros. Most synopses specify a family of functions consisting of a principal @@ -11580,7 +11580,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. substantially slower. -
7.12.1 Treatment of error conditions
+7.12.1 Treatment of error conditions
The behavior of each of the functions in <math.h> is specified for all representable values of its input arguments, except where stated otherwise. Each function shall execute @@ -11653,7 +11653,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
230) Math errors are being indicated by the floating-point exception flags rather than by errno. -
7.12.2 The FP_CONTRACT pragma
+7.12.2 The FP_CONTRACT pragma
Synopsis
@@ -11674,12 +11674,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. context, the behavior is undefined. The default state (''on'' or ''off'') for the pragma is implementation-defined. -7.12.3 Classification macros
+7.12.3 Classification macros
In the synopses in this subclause, real-floating indicates that the argument shall be an expression of real floating type. -
7.12.3.1 The fpclassify macro
+7.12.3.1 The fpclassify macro
Synopsis
@@ -11705,7 +11705,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. become subnormal when converted to double, and zero when converted to float. -7.12.3.2 The isfinite macro
+7.12.3.2 The isfinite macro
Synopsis
@@ -11722,7 +11722,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The isfinite macro returns a nonzero value if and only if its argument has a finite value. -7.12.3.3 The isinf macro
+7.12.3.3 The isinf macro
Synopsis
@@ -11738,7 +11738,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The isinf macro returns a nonzero value if and only if its argument has an infinite value. -7.12.3.4 The isnan macro
+7.12.3.4 The isnan macro
Synopsis
@@ -11761,7 +11761,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. NaNs in the evaluation type but not in the semantic type. -7.12.3.5 The isnormal macro
+7.12.3.5 The isnormal macro
Synopsis
@@ -11778,7 +11778,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The isnormal macro returns a nonzero value if and only if its argument has a normal value. -7.12.3.6 The signbit macro
+7.12.3.6 The signbit macro
Synopsis
@@ -11802,9 +11802,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. unsigned, it is treated as positive. -7.12.4 Trigonometric functions
+7.12.4 Trigonometric functions
-7.12.4.1 The acos functions
+7.12.4.1 The acos functions
Synopsis
@@ -11820,7 +11820,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The acos functions return arccos x in the interval [0, pi ] radians. -
7.12.4.2 The asin functions
+7.12.4.2 The asin functions
Synopsis
@@ -11836,7 +11836,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The asin functions return arcsin x in the interval [-pi /2, +pi /2] radians. -
7.12.4.3 The atan functions
+7.12.4.3 The atan functions
Synopsis
@@ -11852,7 +11852,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atan functions return arctan x in the interval [-pi /2, +pi /2] radians. -
7.12.4.4 The atan2 functions
+7.12.4.4 The atan2 functions
Synopsis
@@ -11869,7 +11869,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atan2 functions return arctan y/x in the interval [-pi , +pi ] radians. -
7.12.4.5 The cos functions
+7.12.4.5 The cos functions
Synopsis
@@ -11884,7 +11884,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The cos functions return cos x. -
7.12.4.6 The sin functions
+7.12.4.6 The sin functions
Synopsis
@@ -11900,7 +11900,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The sin functions return sin x. -
7.12.4.7 The tan functions
+7.12.4.7 The tan functions
Synopsis
@@ -11915,9 +11915,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The tan functions return tan x. -
7.12.5 Hyperbolic functions
+7.12.5 Hyperbolic functions
-7.12.5.1 The acosh functions
+7.12.5.1 The acosh functions
Synopsis
@@ -11933,7 +11933,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The acosh functions return arcosh x in the interval [0, +(inf)]. -
7.12.5.2 The asinh functions
+7.12.5.2 The asinh functions
Synopsis
@@ -11949,7 +11949,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The asinh functions return arsinh x. -
7.12.5.3 The atanh functions
+7.12.5.3 The atanh functions
Synopsis
@@ -11966,7 +11966,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atanh functions return artanh x. -
7.12.5.4 The cosh functions
+7.12.5.4 The cosh functions
Synopsis
@@ -11982,7 +11982,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The cosh functions return cosh x. -
7.12.5.5 The sinh functions
+7.12.5.5 The sinh functions
Synopsis
@@ -11999,7 +11999,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The sinh functions return sinh x. -
7.12.5.6 The tanh functions
+7.12.5.6 The tanh functions
Synopsis
@@ -12014,9 +12014,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The tanh functions return tanh x. -
7.12.6 Exponential and logarithmic functions
+7.12.6 Exponential and logarithmic functions
-7.12.6.1 The exp functions
+7.12.6.1 The exp functions
Synopsis
@@ -12032,7 +12032,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The exp functions return ex . -
7.12.6.2 The exp2 functions
+7.12.6.2 The exp2 functions
Synopsis
@@ -12049,7 +12049,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The exp2 functions return 2x . -
7.12.6.3 The expm1 functions
+7.12.6.3 The expm1 functions
Synopsis
@@ -12069,7 +12069,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.234) For small magnitude x, expm1(x) is expected to be more accurate than exp(x) - 1. -
7.12.6.4 The frexp functions
+7.12.6.4 The frexp functions
Synopsis
@@ -12093,7 +12093,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.12.6.5 The ilogb functions
+7.12.6.5 The ilogb functions
Synopsis
@@ -12114,7 +12114,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The ilogb functions return the exponent of x as a signed int value.Forward references: the logb functions (7.12.6.11). -
7.12.6.6 The ldexp functions
+7.12.6.6 The ldexp functions
Synopsis
@@ -12130,7 +12130,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The ldexp functions return x x 2exp . -
7.12.6.7 The log functions
+7.12.6.7 The log functions
Synopsis
@@ -12147,7 +12147,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The log functions return loge x. -
7.12.6.8 The log10 functions
+7.12.6.8 The log10 functions
Synopsis
@@ -12163,7 +12163,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The log10 functions return log10 x. -
7.12.6.9 The log1p functions
+7.12.6.9 The log1p functions
Synopsis
@@ -12189,7 +12189,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.235) For small magnitude x, log1p(x) is expected to be more accurate than log(1 + x). -
7.12.6.10 The log2 functions
+7.12.6.10 The log2 functions
Synopsis
@@ -12205,7 +12205,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The log2 functions return log2 x. -
7.12.6.11 The logb functions
+7.12.6.11 The logb functions
Synopsis
@@ -12225,7 +12225,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The logb functions return the signed exponent of x. -
7.12.6.12 The modf functions
+7.12.6.12 The modf functions
Synopsis
@@ -12243,7 +12243,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The modf functions return the signed fractional part of value. -
7.12.6.13 The scalbn and scalbln functions
+7.12.6.13 The scalbn and scalbln functions
Synopsis
@@ -12262,9 +12262,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The scalbn and scalbln functions return x x FLT_RADIXn . -
7.12.7 Power and absolute-value functions
+7.12.7 Power and absolute-value functions
-7.12.7.1 The cbrt functions
+7.12.7.1 The cbrt functions
Synopsis
@@ -12280,7 +12280,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The cbrt functions return x1/3 . -7.12.7.2 The fabs functions
+7.12.7.2 The fabs functions
Synopsis
@@ -12295,7 +12295,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The fabs functions return | x |. -
7.12.7.3 The hypot functions
+7.12.7.3 The hypot functions
Synopsis
@@ -12315,7 +12315,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. - ------7.12.7.4 The pow functions
+7.12.7.4 The pow functions
Synopsis
@@ -12334,7 +12334,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The pow functions return xy . -
7.12.7.5 The sqrt functions
+7.12.7.5 The sqrt functions
Synopsis
@@ -12353,9 +12353,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. - --7.12.8 Error and gamma functions
+7.12.8 Error and gamma functions
-7.12.8.1 The erf functions
+7.12.8.1 The erf functions
Synopsis
@@ -12379,7 +12379,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. - 0-7.12.8.2 The erfc functions
+7.12.8.2 The erfc functions
Synopsis
@@ -12405,7 +12405,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. - x-7.12.8.3 The lgamma functions
+7.12.8.3 The lgamma functions
Synopsis
@@ -12422,7 +12422,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The lgamma functions return loge | (Gamma)(x) |. -
7.12.8.4 The tgamma functions
+7.12.8.4 The tgamma functions
Synopsis
@@ -12440,9 +12440,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The tgamma functions return (Gamma)(x). -7.12.9 Nearest integer functions
+7.12.9 Nearest integer functions
-7.12.9.1 The ceil functions
+7.12.9.1 The ceil functions
Synopsis
@@ -12457,7 +12457,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The ceil functions return [^x^], expressed as a floating-point number. -
7.12.9.2 The floor functions
+7.12.9.2 The floor functions
Synopsis
@@ -12472,7 +12472,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The floor functions return [_x_], expressed as a floating-point number. -
7.12.9.3 The nearbyint functions
+7.12.9.3 The nearbyint functions
Synopsis
@@ -12490,7 +12490,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The nearbyint functions return the rounded integer value. -
7.12.9.4 The rint functions
+7.12.9.4 The rint functions
Synopsis
@@ -12507,7 +12507,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The rint functions return the rounded integer value. -
7.12.9.5 The lrint and llrint functions
+7.12.9.5 The lrint and llrint functions
Synopsis
@@ -12529,7 +12529,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The lrint and llrint functions return the rounded integer value. -7.12.9.6 The round functions
+7.12.9.6 The round functions
Synopsis
@@ -12546,7 +12546,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The round functions return the rounded integer value. -
7.12.9.7 The lround and llround functions
+7.12.9.7 The lround and llround functions
Synopsis
@@ -12567,7 +12567,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The lround and llround functions return the rounded integer value. -
7.12.9.8 The trunc functions
+7.12.9.8 The trunc functions
Synopsis
@@ -12584,9 +12584,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The trunc functions return the truncated integer value. -
7.12.10 Remainder functions
+7.12.10 Remainder functions
-7.12.10.1 The fmod functions
+7.12.10.1 The fmod functions
Synopsis
@@ -12604,7 +12604,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. whether a domain error occurs or the fmod functions return zero is implementation- defined. -7.12.10.2 The remainder functions
+7.12.10.2 The remainder functions
Synopsis
@@ -12632,7 +12632,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. all implementations. -7.12.10.3 The remquo functions
+7.12.10.3 The remquo functions
Synopsis
@@ -12653,9 +12653,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. pointed to by quo is unspecified and whether a domain error occurs or the functions return zero is implementation defined. -7.12.11 Manipulation functions
+7.12.11 Manipulation functions
-7.12.11.1 The copysign functions
+7.12.11.1 The copysign functions
Synopsis
@@ -12674,7 +12674,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The copysign functions return a value with the magnitude of x and the sign of y. -7.12.11.2 The nan functions
+7.12.11.2 The nan functions
Synopsis
@@ -12696,7 +12696,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If the implementation does not support quiet NaNs, the functions return zero.Forward references: the strtod, strtof, and strtold functions (7.22.1.3). -
7.12.11.3 The nextafter functions
+7.12.11.3 The nextafter functions
Synopsis
@@ -12724,7 +12724,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function. -7.12.11.4 The nexttoward functions
+7.12.11.4 The nexttoward functions
Synopsis
@@ -12743,9 +12743,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. range or precision in a floating second argument. -7.12.12 Maximum, minimum, and positive difference functions
+7.12.12 Maximum, minimum, and positive difference functions
-7.12.12.1 The fdim functions
+7.12.12.1 The fdim functions
Synopsis
@@ -12765,7 +12765,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The fdim functions return the positive difference value. -
7.12.12.2 The fmax functions
+7.12.12.2 The fmax functions
Synopsis
@@ -12789,7 +12789,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. fmax functions choose the numeric value. See F.10.9.2. -7.12.12.3 The fmin functions
+7.12.12.3 The fmin functions
Synopsis
@@ -12808,9 +12808,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.240) The fmin functions are analogous to the fmax functions in their treatment of NaNs. -
7.12.13 Floating multiply-add
+7.12.13 Floating multiply-add
-7.12.13.1 The fma functions
+7.12.13.1 The fma functions
Synopsis
@@ -12833,7 +12833,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.12.14 Comparison macros
+7.12.14 Comparison macros
The relational and equality operators support the usual mathematical relationships between numeric values. For any ordered pair of numeric values exactly one of the @@ -12858,7 +12858,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. type is unspecified. -
7.12.14.1 The isgreater macro
+7.12.14.1 The isgreater macro
Synopsis
@@ -12874,7 +12874,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isgreater macro returns the value of (x) > (y). -
7.12.14.2 The isgreaterequal macro
+7.12.14.2 The isgreaterequal macro
Synopsis
@@ -12895,7 +12895,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isgreaterequal macro returns the value of (x) >= (y). -
7.12.14.3 The isless macro
+7.12.14.3 The isless macro
Synopsis
@@ -12911,7 +12911,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The isless macro returns the value of (x) < (y). -
7.12.14.4 The islessequal macro
+7.12.14.4 The islessequal macro
Synopsis
@@ -12928,7 +12928,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The islessequal macro returns the value of (x) <= (y). -7.12.14.5 The islessgreater macro
+7.12.14.5 The islessgreater macro
Synopsis
@@ -12945,7 +12945,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The islessgreater macro returns the value of (x) < (y) || (x) > (y). -
7.12.14.6 The isunordered macro
+7.12.14.6 The isunordered macro
Synopsis
@@ -12959,7 +12959,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The isunordered macro returns 1 if its arguments are unordered and 0 otherwise. -7.13 Nonlocal jumps
+7.13 Nonlocal jumps
The header <setjmp.h> defines the macro setjmp, and declares one function and one type, for bypassing the normal function call and return discipline.244) @@ -12983,9 +12983,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. a program. -
7.13.1 Save calling environment
+7.13.1 Save calling environment
-7.13.1.1 The setjmp macro
+7.13.1.1 The setjmp macro
Synopsis
@@ -13000,7 +13000,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If the return is from a direct invocation, the setjmp macro returns the value zero. If the return is from a call to the longjmp function, the setjmp macro returns a nonzero value. - Environmental limits +Environmental limits
An invocation of the setjmp macro shall appear only in one of the following contexts:
If the invocation appears in any other context, the behavior is undefined.
-7.13.2 Restore calling environment
+
@@ -13086,7 +13086,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.246) This includes, but is not limited to, the floating-point status flags and the state of open files. -
7.14 Signal handling
+7.14 Signal handling
The header <signal.h> declares a type and two functions and defines several macros, for handling various signals (conditions that may be reported during program execution). @@ -13134,9 +13134,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. and termination. -
7.14.1 Specify signal handling
+7.14.1 Specify signal handling
-7.14.1.1 The signal function
+7.14.1.1 The signal function
Synopsis
@@ -13203,9 +13203,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.249) If any signal is generated by an asynchronous signal handler, the behavior is undefined. -
7.14.2 Send signal
+7.14.2 Send signal
-7.14.2.1 The raise function
+7.14.2.1 The raise function
Synopsis
@@ -13221,7 +13221,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The raise function returns zero if successful, nonzero if unsuccessful. -7.15 Alignment
+7.15 Alignment
The header <stdalign.h> defines two macros.
@@ -13236,7 +13236,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. which expands to the integer constant 1. -
7.16 Variable arguments
+7.16 Variable arguments
The header <stdarg.h> declares a type and defines four macros, for advancing through a list of arguments whose number and types are not known to the called function @@ -13263,7 +13263,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. case the original function may make further use of the original list after the other function returns. -
7.16.1 Variable argument list access macros
+7.16.1 Variable argument list access macros
The va_start and va_arg macros described in this subclause shall be implemented as macros, not functions. It is unspecified whether va_copy and va_end are macros or @@ -13273,7 +13273,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. shall be matched by a corresponding invocation of the va_end macro in the same function. -
7.16.1.1 The va_arg macro
+7.16.1.1 The va_arg macro
Synopsis
@@ -13304,7 +13304,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value of the argument after that specified by parmN . Successive invocations return the values of the remaining arguments in succession. -7.16.1.2 The va_copy macro
+7.16.1.2 The va_copy macro
Synopsis
@@ -13321,7 +13321,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The va_copy macro returns no value. -
7.16.1.3 The va_end macro
+7.16.1.3 The va_end macro
Synopsis
@@ -13341,7 +13341,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The va_end macro returns no value. -
7.16.1.4 The va_start macro
+7.16.1.4 The va_start macro
Synopsis
@@ -13420,9 +13420,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. f4(n_ptrs, array); }-7.17 Atomics
+7.17 Atomics
-7.17.1 Introduction
+7.17.1 Introduction
The header <stdatomic.h> defines several macros and declares several types and functions for performing atomic operations on data shared between threads. @@ -13480,9 +13480,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. operations to volatile objects. -
7.17.2 Initialization
+7.17.2 Initialization
-7.17.2.1 The ATOMIC_VAR_INIT macro
+7.17.2.1 The ATOMIC_VAR_INIT macro
Synopsis
@@ -13505,7 +13505,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. atomic_int guide = ATOMIC_VAR_INIT(42);-7.17.2.2 The atomic_init generic function
+7.17.2.2 The atomic_init generic function
Synopsis
@@ -13531,7 +13531,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. atomic_init(&guide, 42);-7.17.3 Order and consistency
+7.17.3 Order and consistency
The enumerated type memory_order specifies the detailed regular (non-atomic) memory synchronization operations as defined in 5.1.2.4 and may provide for operation @@ -13640,7 +13640,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. in the computation of 42. In the absence of ''relaxed'' operations and read-modify-write operations with weaker than memory_order_acq_rel ordering, the second requirement has no impact. - Recommended practice +
Recommended practice
The requirements do not forbid r1 == 42 && r2 == 42 in the following example, with x and y initially zero: @@ -13664,7 +13664,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
251) Among other implications, atomic variables shall not decay. -
7.17.3.1 The kill_dependency macro
+7.17.3.1 The kill_dependency macro
Synopsis
@@ -13679,7 +13679,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The kill_dependency macro returns the value of y. -
7.17.4 Fences
+7.17.4 Fences
This subclause introduces synchronization primitives called fences. Fences can have acquire semantics, release semantics, or both. A fence with acquire semantics is called @@ -13702,7 +13702,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. sequenced before B and reads the value written by A or a value written by any side effect in the release sequence headed by A. -
7.17.4.1 The atomic_thread_fence function
+7.17.4.1 The atomic_thread_fence function
Synopsis
@@ -13726,7 +13726,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atomic_thread_fence function returns no value. -
7.17.4.2 The atomic_signal_fence function
+7.17.4.2 The atomic_signal_fence function
Synopsis
@@ -13750,7 +13750,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atomic_signal_fence function returns no value. -
7.17.5 Lock-free property
+7.17.5 Lock-free property
The atomic lock-free macros indicate the lock-free property of integer and address atomic types. A value of 0 indicates that the type is never lock-free; a value of 1 indicates that @@ -13762,7 +13762,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. process more than once and memory shared between two processes. -
7.17.5.1 The atomic_is_lock_free generic function
+7.17.5.1 The atomic_is_lock_free generic function
Synopsis
@@ -13779,7 +13779,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. inferred from the result of a lock-free query on another object. -7.17.6 Atomic integer and address types
+7.17.6 Atomic integer and address types
For each line in the following table, the atomic type name is declared as the corresponding direct type. @@ -13836,12 +13836,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. to port existing code. -
7.17.7 Operations on atomic types
+7.17.7 Operations on atomic types
There are only a few kinds of operations on atomic types, though there are many instances of those kinds. This subclause specifies each general kind. -
7.17.7.1 The atomic_store generic functions
+7.17.7.1 The atomic_store generic functions
Synopsis
@@ -13859,7 +13859,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atomic_store generic functions return no value. -
7.17.7.2 The atomic_load generic functions
+7.17.7.2 The atomic_load generic functions
Synopsis
@@ -13875,7 +13875,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Atomically returns the value pointed to by object. -These types are required. -7.17.7.3 The atomic_exchange generic functions
+7.17.7.3 The atomic_exchange generic functions
Synopsis
@@ -13892,7 +13892,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.These types are optional. -Atomically returns the value pointed to by object immediately before the effects. -
7.17.7.4 The atomic_compare_exchange generic functions
+7.17.7.4 The atomic_compare_exchange generic functions
Synopsis
@@ -13949,7 +13949,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-The result of the comparison. -
7.17.7.5 The atomic_fetch and modify generic functions
+7.17.7.5 The atomic_fetch and modify generic functions
The following operations perform arithmetic and bitwise computations. All of these operations are applicable to an object of any atomic integer type. Only addition and @@ -13989,7 +13989,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. atomic_fetch and modify generic functions is the previous value of the atomic object. -
7.17.8 Atomic flag type and operations
+7.17.8 Atomic flag type and operations
The atomic_flag type provides the classic test-and-set functionality. It has two states, set and clear. @@ -14011,7 +14011,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. atomic_flag guard = ATOMIC_FLAG_INIT;
7.17.8.1 The atomic_flag_test_and_set functions
+7.17.8.1 The atomic_flag_test_and_set functions
Synopsis
@@ -14030,7 +14030,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.All other types of this form are optional. -Atomically, the value of the object immediately before the effects. -
7.17.8.2 The atomic_flag_clear functions
+7.17.8.2 The atomic_flag_clear functions
Synopsis
@@ -14048,7 +14048,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The atomic_flag_clear functions return no value. -then the expression &(t.member-designator) evaluates to an address constant. (If the specified member is a bit-field, the behavior is undefined.) - Recommended practice +7.18 Boolean type and values
+7.18 Boolean type and values
The header <stdbool.h> defines four macros.
@@ -14081,7 +14081,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
252) See ''future library directions'' (7.30.7). -
7.19 Common definitions
+7.19 Common definitions
The header <stddef.h> defines the following macros and declares the following types. Some are also defined in other headers, as noted in their respective subclauses. @@ -14120,7 +14120,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. static type t;
Recommended practice
The types used for size_t and ptrdiff_t should not have an integer conversion rank greater than that of signed long int unless the implementation supports objects @@ -14129,7 +14129,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Forward references: localization (7.11). -
7.20 Integer types
+7.20 Integer types
The header <stdint.h> declares sets of integer types having specified widths, and defines corresponding sets of macros.253) It also defines macros that specify limits of @@ -14161,7 +14161,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
254) Some of these types may denote implementation-defined extended integer types. -
7.20.1 Integer types
+7.20.1 Integer types
When typedef names differing only in the absence or presence of the initial u are defined, they shall denote corresponding signed and unsigned types as described in 6.2.5; an @@ -14175,7 +14175,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
7.20.1.1 Exact-width integer types
+7.20.1.1 Exact-width integer types
The typedef name intN_t designates a signed integer type with width N , no padding bits, and a two's complement representation. Thus, int8_t denotes such a signed @@ -14189,7 +14189,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. widths of 8, 16, 32, or 64 bits, no padding bits, and (for the signed types) that have a two's complement representation, it shall define the corresponding typedef names. -
7.20.1.2 Minimum-width integer types
+7.20.1.2 Minimum-width integer types
The typedef name int_leastN_t designates a signed integer type with a width of at least N , such that no signed integer type with lesser size has at least the specified width. @@ -14208,7 +14208,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. int_least64_t uint_least64_t
7.20.1.3 Fastest minimum-width integer types
+7.20.1.3 Fastest minimum-width integer types
Each of the following types designates an integer type that is usually fastest255) to operate with among all integer types that have at least the specified width. @@ -14236,7 +14236,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. signedness and width requirements. -
7.20.1.4 Integer types capable of holding object pointers
+7.20.1.4 Integer types capable of holding object pointers
The following type designates a signed integer type with the property that any valid pointer to void can be converted to this type, then converted back to pointer to void, @@ -14250,7 +14250,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. uintptr_t
7.20.1.5 Greatest-width integer types
+7.20.1.5 Greatest-width integer types
The following type designates a signed integer type capable of representing any value of any signed integer type: @@ -14262,7 +14262,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. uintmax_t
7.20.2 Limits of specified-width integer types
+7.20.2 Limits of specified-width integer types
The following object-like macros specify the minimum and maximum limits of the types * declared in <stdint.h>. Each macro name corresponds to a similar type name in @@ -14276,7 +14276,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. except where stated to be exactly the given value. -
7.20.2.1 Limits of exact-width integer types
+7.20.2.1 Limits of exact-width integer types
The following object-like macros specify the minimum and maximum limits of integer *
types corresponding to types defined in other standard headers.
@@ -14395,7 +14395,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
character set.
-7.20.4 Macros for integer constants
+
The following function-like macros expand to integer constants suitable for initializing *
objects that have integer types corresponding to types defined in <stdint.h>. Each
@@ -14409,7 +14409,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
the same type as would an expression of the corresponding type converted according to
the integer promotions. The value of the expression shall be that of the argument.
-7.20.4.1 Macros for minimum-width integer constants
+
The macro INTN_C(value) shall expand to an integer constant expression
corresponding to the type int_leastN_t. The macro UINTN_C(value) shall expand
@@ -14422,7 +14422,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-7.20.4.2 Macros for greatest-width integer constants
+
The following macro expands to an integer constant expression having the value specified by its argument and the type intmax_t: @@ -14434,9 +14434,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
UINTMAX_C(value)-
The header <stdio.h> defines several macros, and declares three types and many
functions for performing input and output.
@@ -14536,7 +14536,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
all possible strings of length FILENAME_MAX cannot be expected to be opened successfully.
-7.21.2 Streams
+
Input and output, whether to or from physical devices such as terminals and tape drives, or whether to or from files supported on structured storage devices, are mapped into @@ -14592,7 +14592,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value of this mbstate_t object as part of the value of the fpos_t object. A later successful call to fsetpos using the same stored fpos_t value restores the value of the associated mbstate_t object as well as the position within the controlled stream. - Environmental limits +
An implementation shall support text files with lines containing at least 254 characters, including the terminating new-line character. The value of the macro BUFSIZ shall be at @@ -14614,7 +14614,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
260) The three predefined streams stdin, stdout, and stderr are unoriented at program startup.
-7.21.3 Files
+
A stream is associated with an external file (which may be a physical device) by opening a file, which may involve creating a new file. Creating an existing file causes its former @@ -14710,7 +14710,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. multibyte character. The wide character input/output functions and the byte input/output functions store the value of the macro EILSEQ in errno if and only if an encoding error occurs. - Environmental limits +
The value of FOPEN_MAX shall be at least eight, including the three standard text
streams.
@@ -14726,9 +14726,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
with state-dependent encoding that does not assuredly end in the initial shift state.
-7.21.4 Operations on files
+
@@ -14744,7 +14744,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The remove function returns zero if the operation succeeds, nonzero if it fails. -
7.21.4.2 The rename function
+7.21.4.2 The rename function
Synopsis
@@ -14767,7 +14767,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. or that it is necessary to copy its contents to effectuate its renaming. -7.21.4.3 The tmpfile function
+7.21.4.3 The tmpfile function
Synopsis
@@ -14779,7 +14779,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. existing file and that will automatically be removed when it is closed or at program termination. If the program terminates abnormally, whether an open temporary file is removed is implementation-defined. The file is opened for update with "wb+" mode. - Recommended practice +Recommended practice
It should be possible to open at least TMP_MAX temporary files during the lifetime of the program (this limit may be shared with tmpnam) and there should be no limit on the @@ -14791,7 +14791,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. cannot be created, the tmpfile function returns a null pointer.
Forward references: the fopen function (7.21.5.3). -
7.21.4.4 The tmpnam function
+7.21.4.4 The tmpnam function
Synopsis
@@ -14820,7 +14820,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function may modify the same object). If the argument is not a null pointer, it is assumed to point to an array of at least L_tmpnam chars; the tmpnam function writes its result in that array and returns the argument as its value. - Environmental limits +Environmental limits
The value of the macro TMP_MAX shall be at least 25. @@ -14831,9 +14831,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. is ended, and before program termination. -
7.21.5 File access functions
+7.21.5 File access functions
-7.21.5.1 The fclose function
+7.21.5.1 The fclose function
Synopsis
@@ -14853,7 +14853,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. errors were detected. -7.21.5.2 The fflush function
+7.21.5.2 The fflush function
Synopsis
@@ -14874,7 +14874,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. error occurs, otherwise it returns zero.Forward references: the fopen function (7.21.5.3). -
7.21.5.3 The fopen function
+7.21.5.3 The fopen function
Synopsis
@@ -14947,7 +14947,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. conform to the properties in 7.21.2). -7.21.5.4 The freopen function
+7.21.5.4 The freopen function
Synopsis
@@ -14980,7 +14980,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returned by the fopen function may be assigned. -7.21.5.5 The setbuf function
+7.21.5.5 The setbuf function
Synopsis
@@ -15002,7 +15002,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The setbuf function returns no value.Forward references: the setvbuf function (7.21.5.6). -
7.21.5.6 The setvbuf function
+7.21.5.6 The setvbuf function
Synopsis
@@ -15037,7 +15037,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. before a buffer that has automatic storage duration is deallocated upon block exit. -7.21.6 Formatted input/output functions
+7.21.6 Formatted input/output functions
The formatted input/output functions shall behave as if there is a sequence point after the actions associated with each specifier.267) @@ -15046,7 +15046,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
267) The fprintf functions perform writes to memory for the %n specifier. -
7.21.6.1 The fprintf function
+7.21.6.1 The fprintf function
Synopsis
@@ -15323,7 +15323,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.For a and A conversions, if FLT_RADIX is a power of 2, the value is correctly rounded to a hexadecimal floating number with the given precision. - Recommended practice +
Recommended practice
For a and A conversions, if FLT_RADIX is not a power of 2 and the result is not exactly representable in the given precision, the result should be one of the two adjacent numbers @@ -15345,7 +15345,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The fprintf function returns the number of characters transmitted, or a negative value if an output or encoding error occurred. - Environmental limits +
Environmental limits
The number of characters that can be produced by any single conversion shall be at least 4095. @@ -15420,7 +15420,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the case of fixed-point conversion by the source value as well. -
7.21.6.2 The fscanf function
+7.21.6.2 The fscanf function
Synopsis
@@ -15573,7 +15573,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. corresponding argument shall be a pointer to the initial element of an array of wchar_t large enough to accept the resulting sequence of wide characters. No null wide character is added.- s Matches a sequence of non-white-space characters.279) + s Matches a sequence of non-white-space characters.279)If no l length modifier is present, the corresponding argument shall be a pointer to the initial element of a character array large enough to accept the @@ -15588,7 +15588,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. added automatically.[ Matches a nonempty sequence of characters from a set of expected characters- (the scanset).279) + (the scanset).279) If no l length modifier is present, the corresponding argument shall be a pointer to the initial element of a character array large enough to accept the sequence and a terminating null character, which will be added automatically. @@ -15789,7 +15789,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.280) See ''future library directions'' (7.30.9). -
7.21.6.3 The printf function
+7.21.6.3 The printf function
Synopsis
@@ -15804,7 +15804,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The printf function returns the number of characters transmitted, or a negative value if an output or encoding error occurred. -7.21.6.4 The scanf function
+7.21.6.4 The scanf function
Synopsis
@@ -15822,7 +15822,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -7.21.6.5 The snprintf function
+7.21.6.5 The snprintf function
Synopsis
@@ -15844,7 +15844,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value if an encoding error occurred. Thus, the null-terminated output has been completely written if and only if the returned value is nonnegative and less than n. -7.21.6.6 The sprintf function
+7.21.6.6 The sprintf function
Synopsis
@@ -15863,7 +15863,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. counting the terminating null character, or a negative value if an encoding error occurred. -7.21.6.7 The sscanf function
+7.21.6.7 The sscanf function
Synopsis
@@ -15883,7 +15883,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -7.21.6.8 The vfprintf function
+7.21.6.8 The vfprintf function
Synopsis
@@ -15929,7 +15929,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. vsscanf invoke the va_arg macro, the value of arg after the return is indeterminate. -7.21.6.9 The vfscanf function
+7.21.6.9 The vfscanf function
Synopsis
@@ -15943,7 +15943,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vfscanf function is equivalent to fscanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vfscanf function does not invoke the - va_end macro.281) + va_end macro.281)Returns
The vfscanf function returns the value of the macro EOF if an input failure occurs @@ -15951,7 +15951,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.21.6.10 The vprintf function
+7.21.6.10 The vprintf function
Synopsis
@@ -15965,13 +15965,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vprintf function does not invoke the - va_end macro.281) + va_end macro.281)Returns
The vprintf function returns the number of characters transmitted, or a negative value if an output or encoding error occurred. -
7.21.6.11 The vscanf function
+7.21.6.11 The vscanf function
Synopsis
@@ -15984,7 +15984,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vscanf function is equivalent to scanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vscanf function does not invoke the va_end - macro.281) + macro.281)Returns
The vscanf function returns the value of the macro EOF if an input failure occurs @@ -15992,7 +15992,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.21.6.12 The vsnprintf function
+7.21.6.12 The vsnprintf function
Synopsis
@@ -16006,7 +16006,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vsnprintf function is equivalent to snprintf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vsnprintf function does not invoke the - va_end macro.281) If copying takes place between objects that overlap, the behavior is + va_end macro.281) If copying takes place between objects that overlap, the behavior is undefined.Returns
@@ -16016,7 +16016,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value if an encoding error occurred. Thus, the null-terminated output has been completely written if and only if the returned value is nonnegative and less than n. -7.21.6.13 The vsprintf function
+7.21.6.13 The vsprintf function
Synopsis
@@ -16030,14 +16030,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vsprintf function is equivalent to sprintf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vsprintf function does not invoke the - va_end macro.281) If copying takes place between objects that overlap, the behavior is + va_end macro.281) If copying takes place between objects that overlap, the behavior is undefined.Returns
The vsprintf function returns the number of characters written in the array, not counting the terminating null character, or a negative value if an encoding error occurred. -
7.21.6.14 The vsscanf function
+7.21.6.14 The vsscanf function
Synopsis
@@ -16051,7 +16051,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vsscanf function is equivalent to sscanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vsscanf function does not invoke the - va_end macro.281) + va_end macro.281)Returns
The vsscanf function returns the value of the macro EOF if an input failure occurs @@ -16060,9 +16060,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.21.7 Character input/output functions
+7.21.7 Character input/output functions
-7.21.7.1 The fgetc function
+7.21.7.1 The fgetc function
Synopsis
@@ -16086,7 +16086,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.282) An end-of-file and a read error can be distinguished by use of the feof and ferror functions. -
7.21.7.2 The fgets function
+7.21.7.2 The fgets function
Synopsis
@@ -16108,7 +16108,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.21.7.3 The fputc function
+7.21.7.3 The fputc function
Synopsis
@@ -16126,7 +16126,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fputc function returns the character written. If a write error occurs, the error indicator for the stream is set and fputc returns EOF. -7.21.7.4 The fputs function
+7.21.7.4 The fputs function
Synopsis
@@ -16142,7 +16142,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fputs function returns EOF if a write error occurs; otherwise it returns a nonnegative value. -7.21.7.5 The getc function
+7.21.7.5 The getc function
Synopsis
@@ -16161,7 +16161,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. getc returns EOF. If a read error occurs, the error indicator for the stream is set and getc returns EOF. -7.21.7.6 The getchar function
+7.21.7.6 The getchar function
Synopsis
@@ -16177,7 +16177,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. getchar returns EOF. If a read error occurs, the error indicator for the stream is set and getchar returns EOF. * -7.21.7.7 The putc function
+7.21.7.7 The putc function
Synopsis
@@ -16193,7 +16193,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The putc function returns the character written. If a write error occurs, the error indicator for the stream is set and putc returns EOF. -7.21.7.8 The putchar function
+7.21.7.8 The putchar function
Synopsis
@@ -16208,7 +16208,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The putchar function returns the character written. If a write error occurs, the error indicator for the stream is set and putchar returns EOF. -7.21.7.9 The puts function
+7.21.7.9 The puts function
Synopsis
@@ -16224,7 +16224,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The puts function returns EOF if a write error occurs; otherwise it returns a nonnegative value. -7.21.7.10 The ungetc function
+7.21.7.10 The ungetc function
Synopsis
@@ -16265,9 +16265,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.283) See ''future library directions'' (7.30.9). -
7.21.8 Direct input/output functions
+7.21.8 Direct input/output functions
-7.21.8.1 The fread function
+7.21.8.1 The fread function
Synopsis
@@ -16296,7 +16296,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.21.8.2 The fwrite function
+7.21.8.2 The fwrite function
Synopsis
@@ -16319,9 +16319,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. less than nmemb only if a write error is encountered. If size or nmemb is zero, fwrite returns zero and the state of the stream remains unchanged. -7.21.9 File positioning functions
+7.21.9 File positioning functions
-7.21.9.1 The fgetpos function
+7.21.9.1 The fgetpos function
Synopsis
@@ -16341,7 +16341,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: the fsetpos function (7.21.9.3). -
7.21.9.2 The fseek function
+7.21.9.2 The fseek function
Synopsis
@@ -16371,7 +16371,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The fseek function returns nonzero only for a request that cannot be satisfied.Forward references: the ftell function (7.21.9.4). -
7.21.9.3 The fsetpos function
+7.21.9.3 The fsetpos function
Synopsis
@@ -16395,7 +16395,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If successful, the fsetpos function returns zero; on failure, the fsetpos function returns nonzero and stores an implementation-defined positive value in errno. -7.21.9.4 The ftell function
+7.21.9.4 The ftell function
Synopsis
@@ -16416,7 +16416,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. for the stream. On failure, the ftell function returns -1L and stores an implementation-defined positive value in errno. -7.21.9.5 The rewind function
+7.21.9.5 The rewind function
Synopsis
@@ -16434,9 +16434,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The rewind function returns no value. -7.21.10 Error-handling functions
+7.21.10 Error-handling functions
-7.21.10.1 The clearerr function
+7.21.10.1 The clearerr function
Synopsis
@@ -16450,7 +16450,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The clearerr function returns no value. -
7.21.10.2 The feof function
+7.21.10.2 The feof function
Synopsis
@@ -16464,7 +16464,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The feof function returns nonzero if and only if the end-of-file indicator is set for stream. -7.21.10.3 The ferror function
+7.21.10.3 The ferror function
Synopsis
@@ -16479,7 +16479,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. stream. -7.21.10.4 The perror function
+7.21.10.4 The perror function
Synopsis
@@ -16499,7 +16499,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: the strerror function (7.23.6.2). -
7.22 General utilities
+7.22 General utilities
The header <stdlib.h> declares five types and several functions of general utility, and defines several macros.284) @@ -16543,13 +16543,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
284) See ''future library directions'' (7.30.10). -
7.22.1 Numeric conversion functions
+7.22.1 Numeric conversion functions
The functions atof, atoi, atol, and atoll need not affect the value of the integer expression errno on an error. If the value of the result cannot be represented, the behavior is undefined. -
7.22.1.1 The atof function
+7.22.1.1 The atof function
Synopsis
@@ -16566,7 +16566,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The atof function returns the converted value.Forward references: the strtod, strtof, and strtold functions (7.22.1.3). -
7.22.1.2 The atoi, atol, and atoll functions
+7.22.1.2 The atoi, atol, and atoll functions
Synopsis
@@ -16590,7 +16590,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. (7.22.1.4). -7.22.1.3 The strtod, strtof, and strtold functions
+7.22.1.3 The strtod, strtof, and strtold functions
Synopsis
@@ -16658,7 +16658,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If the subject sequence is empty or does not have the expected form, no conversion is performed; the value of nptr is stored in the object pointed to by endptr, provided that endptr is not a null pointer. - Recommended practice +Recommended practice
If the subject sequence has the hexadecimal form, FLT_RADIX is not a power of 2, and the result is not exactly representable, the result should be one of the two numbers in the @@ -16700,7 +16700,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. to the same internal floating value, but if not will round to adjacent values. -
7.22.1.4 The strtol, strtoll, strtoul, and strtoull functions
+7.22.1.4 The strtol, strtoll, strtoul, and strtoull functions
Synopsis
@@ -16775,9 +16775,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. and sign of the value, if any), and the value of the macro ERANGE is stored in errno. -7.22.2 Pseudo-random sequence generation functions
+7.22.2 Pseudo-random sequence generation functions
-7.22.2.1 The rand function
+7.22.2.1 The rand function
Synopsis
@@ -16793,7 +16793,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Returns
The rand function returns a pseudo-random integer. - Environmental limits +
Environmental limits
The value of the RAND_MAX macro shall be at least 32767. @@ -16803,7 +16803,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. particular requirements should use a generator that is known to be sufficient for their needs. -
7.22.2.2 The srand function
+7.22.2.2 The srand function
Synopsis
@@ -16841,7 +16841,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. }-7.22.3 Memory management functions
+7.22.3 Memory management functions
The order and contiguity of storage allocated by successive calls to the aligned_alloc, calloc, malloc, and realloc functions is unspecified. The @@ -16856,7 +16856,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. is returned, or the behavior is as if the size were some nonzero value, except that the returned pointer shall not be used to access an object. -
7.22.3.1 The aligned_alloc function
+7.22.3.1 The aligned_alloc function
Synopsis
@@ -16874,7 +16874,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. space. -7.22.3.2 The calloc function
+7.22.3.2 The calloc function
Synopsis
@@ -16893,7 +16893,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. constant. -7.22.3.3 The free function
+7.22.3.3 The free function
Synopsis
@@ -16910,7 +16910,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The free function returns no value. -
7.22.3.4 The malloc function
+7.22.3.4 The malloc function
Synopsis
@@ -16929,7 +16929,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The malloc function returns either a null pointer or a pointer to the allocated space. -
7.22.3.5 The realloc function
+7.22.3.5 The realloc function
Synopsis
@@ -16954,9 +16954,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value as a pointer to the old object), or a null pointer if the new object could not be allocated. -7.22.4 Communication with the environment
+7.22.4 Communication with the environment
-7.22.4.1 The abort function
+7.22.4.1 The abort function
Synopsis
@@ -16975,7 +16975,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The abort function does not return to its caller. -
7.22.4.2 The atexit function
+7.22.4.2 The atexit function
Synopsis
@@ -16985,7 +16985,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The atexit function registers the function pointed to by func, to be called without arguments at normal program termination.290) - Environmental limits +
Environmental limits
The implementation shall support the registration of at least 32 functions.
Returns
@@ -16999,7 +16999,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. applications may need to call both registration functions with the same argument. -7.22.4.3 The at_quick_exit function
+7.22.4.3 The at_quick_exit function
Synopsis
@@ -17009,7 +17009,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The at_quick_exit function registers the function pointed to by func, to be called without arguments should quick_exit be called.291) - Environmental limits +
Environmental limits
The implementation shall support the registration of at least 32 functions.
Returns
@@ -17026,7 +17026,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. applications may need to call both registration functions with the same argument. -7.22.4.4 The exit function
+7.22.4.4 The exit function
Synopsis
@@ -17062,7 +17062,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. other registered functions. -7.22.4.5 The _Exit function
+7.22.4.5 The _Exit function
Synopsis
@@ -17084,7 +17084,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The _Exit function cannot return to its caller. -
7.22.4.6 The getenv function
+7.22.4.6 The getenv function
Synopsis
@@ -17110,7 +17110,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.293) Many implementations provide non-standard functions that modify the environment list. -
7.22.4.7 The quick_exit function
+7.22.4.7 The quick_exit function
Synopsis
@@ -17143,7 +17143,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. other registered functions. -7.22.4.8 The system function
+7.22.4.8 The system function
Synopsis
@@ -17162,7 +17162,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. command processor is available. If the argument is not a null pointer, and the system function does return, it returns an implementation-defined value. -7.22.5 Searching and sorting utilities
+7.22.5 Searching and sorting utilities
These utilities make use of a comparison function to search or sort arrays of unspecified type. Where an argument declared as size_t nmemb specifies the length of the array @@ -17204,7 +17204,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
7.22.5.1 The bsearch function
+7.22.5.1 The bsearch function
Synopsis
@@ -17237,7 +17237,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.296) In practice, the entire array is sorted according to the comparison function. -
7.22.5.2 The qsort function
+7.22.5.2 The qsort function
Synopsis
@@ -17260,9 +17260,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The qsort function returns no value. -
7.22.6 Integer arithmetic functions
+7.22.6 Integer arithmetic functions
-7.22.6.1 The abs, labs and llabs functions
+7.22.6.1 The abs, labs and llabs functions
Synopsis
@@ -17287,7 +17287,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.297) The absolute value of the most negative number cannot be represented in two's complement. -
7.22.6.2 The div, ldiv, and lldiv functions
+7.22.6.2 The div, ldiv, and lldiv functions
Synopsis
@@ -17307,7 +17307,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. each of which has the same type as the arguments numer and denom. If either part of the result cannot be represented, the behavior is undefined. -7.22.7 Multibyte/wide character conversion functions
+7.22.7 Multibyte/wide character conversion functions
The behavior of the multibyte character functions is affected by the LC_CTYPE category of the current locale. For a state-dependent encoding, each function is placed into its @@ -17323,7 +17323,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. character codes, but are grouped with an adjacent multibyte character. -
7.22.7.1 The mblen function
+7.22.7.1 The mblen function
Synopsis
@@ -17353,7 +17353,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. multibyte character).Forward references: the mbtowc function (7.22.7.2). -
7.22.7.2 The mbtowc function
+7.22.7.2 The mbtowc function
Synopsis
@@ -17385,7 +17385,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. macro. -7.22.7.3 The wctomb function
+7.22.7.3 The wctomb function
Synopsis
@@ -17412,12 +17412,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.In no case will the value returned be greater than the value of the MB_CUR_MAX macro. -
7.22.8 Multibyte/wide string conversion functions
+7.22.8 Multibyte/wide string conversion functions
The behavior of the multibyte string functions is affected by the LC_CTYPE category of the current locale. -
7.22.8.1 The mbstowcs function
+7.22.8.1 The mbstowcs function
Synopsis
@@ -17448,7 +17448,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.299) The array will not be null-terminated if the value returned is n. -
7.22.8.2 The wcstombs function
+7.22.8.2 The wcstombs function
Synopsis
@@ -17472,16 +17472,16 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If a wide character is encountered that does not correspond to a valid multibyte character, the wcstombs function returns (size_t)(-1). Otherwise, the wcstombs function returns the number of bytes modified, not including a terminating null character, if - any.299) + any.299) -7.23 String handling
+7.23 String handling
-7.23.1 String function conventions
+7.23.1 String function conventions
The header <string.h> declares one type and several functions, and defines one macro useful for manipulating arrays of character type and other objects treated as arrays @@ -17506,9 +17506,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
300) See ''future library directions'' (7.30.11). -
7.23.2 Copying functions
+7.23.2 Copying functions
-7.23.2.1 The memcpy function
+7.23.2.1 The memcpy function
Synopsis
@@ -17530,7 +17530,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.23.2.2 The memmove function
+7.23.2.2 The memmove function
Synopsis
@@ -17547,7 +17547,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The memmove function returns the value of s1. -
7.23.2.3 The strcpy function
+7.23.2.3 The strcpy function
Synopsis
@@ -17563,7 +17563,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The strcpy function returns the value of s1. -
7.23.2.4 The strncpy function
+7.23.2.4 The strncpy function
Synopsis
@@ -17590,9 +17590,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. not be null-terminated. -7.23.3 Concatenation functions
+7.23.3 Concatenation functions
-7.23.3.1 The strcat function
+7.23.3.1 The strcat function
Synopsis
@@ -17609,7 +17609,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The strcat function returns the value of s1. -
7.23.3.2 The strncat function
+7.23.3.2 The strncat function
Synopsis
@@ -17636,14 +17636,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. strlen(s1)+n+1. -7.23.4 Comparison functions
+7.23.4 Comparison functions
The sign of a nonzero value returned by the comparison functions memcmp, strcmp, and strncmp is determined by the sign of the difference between the values of the first pair of characters (both interpreted as unsigned char) that differ in the objects being compared. -
7.23.4.1 The memcmp function
+7.23.4.1 The memcmp function
Synopsis
@@ -17665,7 +17665,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. comparison. -7.23.4.2 The strcmp function
+7.23.4.2 The strcmp function
Synopsis
@@ -17683,7 +17683,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. pointed to by s2. -7.23.4.3 The strcoll function
+7.23.4.3 The strcoll function
Synopsis
@@ -17699,7 +17699,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. accordingly as the string pointed to by s1 is greater than, equal to, or less than the string pointed to by s2 when both are interpreted as appropriate to the current locale. -7.23.4.4 The strncmp function
+7.23.4.4 The strncmp function
Synopsis
@@ -17716,7 +17716,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. accordingly as the possibly null-terminated array pointed to by s1 is greater than, equal to, or less than the possibly null-terminated array pointed to by s2. -7.23.4.5 The strxfrm function
+7.23.4.5 The strxfrm function
Synopsis
@@ -17747,9 +17747,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. 1 + strxfrm(NULL, s, 0)-7.23.5 Search functions
+7.23.5 Search functions
-7.23.5.1 The memchr function
+7.23.5.1 The memchr function
Synopsis
@@ -17766,7 +17766,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The memchr function returns a pointer to the located character, or a null pointer if the character does not occur in the object. -7.23.5.2 The strchr function
+7.23.5.2 The strchr function
Synopsis
@@ -17783,7 +17783,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The strchr function returns a pointer to the located character, or a null pointer if the character does not occur in the string. -7.23.5.3 The strcspn function
+7.23.5.3 The strcspn function
Synopsis
@@ -17798,7 +17798,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The strcspn function returns the length of the segment. -
7.23.5.4 The strpbrk function
+7.23.5.4 The strpbrk function
Synopsis
@@ -17813,7 +17813,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The strpbrk function returns a pointer to the character, or a null pointer if no character from s2 occurs in s1. -7.23.5.5 The strrchr function
+7.23.5.5 The strrchr function
Synopsis
@@ -17830,7 +17830,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The strrchr function returns a pointer to the character, or a null pointer if c does not occur in the string. -7.23.5.6 The strspn function
+7.23.5.6 The strspn function
Synopsis
@@ -17844,7 +17844,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The strspn function returns the length of the segment. -
7.23.5.7 The strstr function
+7.23.5.7 The strstr function
Synopsis
@@ -17860,7 +17860,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The strstr function returns a pointer to the located string, or a null pointer if the string is not found. If s2 points to a string with zero length, the function returns s1. -7.23.5.8 The strtok function
+7.23.5.8 The strtok function
Synopsis
@@ -17909,9 +17909,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. t = strtok(NULL, "?"); // t is a null pointer-7.23.6 Miscellaneous functions
+7.23.6 Miscellaneous functions
-7.23.6.1 The memset function
+7.23.6.1 The memset function
Synopsis
@@ -17926,7 +17926,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The memset function returns the value of s. -7.23.6.2 The strerror function
+7.23.6.2 The strerror function
Synopsis
@@ -17946,7 +17946,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. specific. The array pointed to shall not be modified by the program, but may be overwritten by a subsequent call to the strerror function. -7.23.6.3 The strlen function
+7.23.6.3 The strlen function
Synopsis
@@ -17961,7 +17961,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. character. -7.24 Type-generic math
+7.24 Type-generic math
The header <tgmath.h> includes the headers <math.h> and <complex.h> and defines several type-generic macros. @@ -18086,9 +18086,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the behavior is undefined. -
7.25 Threads
+7.25 Threads
-7.25.1 Introduction
+7.25.1 Introduction
The header <threads.h> defines macros, and declares types, enumeration constants, and functions that support multiple threads of execution. @@ -18174,9 +18174,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. was unable to allocate memory. -
7.25.2 Initialization functions
+7.25.2 Initialization functions
-7.25.2.1 The call_once function
+7.25.2.1 The call_once function
Synopsis
@@ -18192,9 +18192,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The call_once function returns no value. -
7.25.3 Condition variable functions
+7.25.3 Condition variable functions
-7.25.3.1 The cnd_broadcast function
+7.25.3.1 The cnd_broadcast function
Synopsis
@@ -18211,7 +18211,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The cnd_broadcast function returns thrd_success on success, or thrd_error if the request could not be honored. -7.25.3.2 The cnd_destroy function
+7.25.3.2 The cnd_destroy function
Synopsis
@@ -18227,7 +18227,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The cnd_destroy function returns no value. -
7.25.3.3 The cnd_init function
+7.25.3.3 The cnd_init function
Synopsis
@@ -18245,7 +18245,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. memory could be allocated for the newly created condition, or thrd_error if the request could not be honored. -7.25.3.4 The cnd_signal function
+7.25.3.4 The cnd_signal function
Synopsis
@@ -18262,7 +18262,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The cnd_signal function returns thrd_success on success or thrd_error if the request could not be honored. -7.25.3.5 The cnd_timedwait function
+7.25.3.5 The cnd_timedwait function
Synopsis
@@ -18284,7 +18284,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. thrd_timeout if the time specified in the call was reached without acquiring the requested resource, or thrd_error if the request could not be honored. -
7.25.3.6 The cnd_wait function
+7.25.3.6 The cnd_wait function
Synopsis
@@ -18303,9 +18303,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The cnd_wait function returns thrd_success on success or thrd_error if the request could not be honored. -7.25.4 Mutex functions
+7.25.4 Mutex functions
-7.25.4.1 The mtx_destroy function
+7.25.4.1 The mtx_destroy function
Synopsis
@@ -18320,7 +18320,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The mtx_destroy function returns no value. -
7.25.4.2 The mtx_init function
+7.25.4.2 The mtx_init function
Synopsis
@@ -18344,7 +18344,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The mtx_init function returns thrd_success on success, or thrd_error if the request could not be honored. -7.25.4.3 The mtx_lock function
+7.25.4.3 The mtx_lock function
Synopsis
@@ -18362,7 +18362,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. honored. -7.25.4.4 The mtx_timedlock function
+7.25.4.4 The mtx_timedlock function
Synopsis
@@ -18381,7 +18381,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. reached without acquiring the requested resource, or thrd_error if the request could not be honored. -7.25.4.5 The mtx_trylock function
+7.25.4.5 The mtx_trylock function
Synopsis
@@ -18399,7 +18399,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the resource requested is already in use, or thrd_error if the request could not be honored. -7.25.4.6 The mtx_unlock function
+7.25.4.6 The mtx_unlock function
Synopsis
@@ -18415,9 +18415,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The mtx_unlock function returns thrd_success on success or thrd_error if the request could not be honored. -7.25.5 Thread functions
+7.25.5 Thread functions
-7.25.5.1 The thrd_create function
+7.25.5.1 The thrd_create function
Synopsis
@@ -18438,7 +18438,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. no memory could be allocated for the thread requested, or thrd_error if the request could not be honored. -7.25.5.2 The thrd_current function
+7.25.5.2 The thrd_current function
Synopsis
@@ -18451,7 +18451,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The thrd_current function returns the identifier of the thread that called it. -
7.25.5.3 The thrd_detach function
+7.25.5.3 The thrd_detach function
Synopsis
@@ -18468,7 +18468,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The thrd_detach function returns thrd_success on success or thrd_error if the request could not be honored. -
7.25.5.4 The thrd_equal function
+7.25.5.4 The thrd_equal function
Synopsis
@@ -18483,7 +18483,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The thrd_equal function returns zero if the thread thr0 and the thread thr1 refer to different threads. Otherwise the thrd_equal function returns a nonzero value. -7.25.5.5 The thrd_exit function
+7.25.5.5 The thrd_exit function
Synopsis
@@ -18497,7 +18497,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The thrd_exit function returns no value. -
7.25.5.6 The thrd_join function
+7.25.5.6 The thrd_join function
Synopsis
@@ -18516,7 +18516,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The thrd_join function returns thrd_success on success or thrd_error if the request could not be honored. -7.25.5.7 The thrd_sleep function
+7.25.5.7 The thrd_sleep function
Synopsis
@@ -18530,7 +18530,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The thrd_sleep function returns no value. -
7.25.5.8 The thrd_yield function
+7.25.5.8 The thrd_yield function
Synopsis
@@ -18544,9 +18544,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The thrd_yield function returns no value. -
7.25.6 Thread-specific storage functions
+7.25.6 Thread-specific storage functions
-7.25.6.1 The tss_create function
+7.25.6.1 The tss_create function
Synopsis
@@ -18564,7 +18564,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. thrd_success; otherwise, thrd_error is returned and the thread-specific storage pointed to by key is set to an undefined value. -7.25.6.2 The tss_delete function
+7.25.6.2 The tss_delete function
Synopsis
@@ -18578,7 +18578,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The tss_delete function returns no value. -
7.25.6.3 The tss_get function
+7.25.6.3 The tss_get function
Synopsis
@@ -18593,7 +18593,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The tss_get function returns the value for the current thread if successful, or zero if unsuccessful. -7.25.6.4 The tss_set function
+7.25.6.4 The tss_set function
Synopsis
@@ -18609,9 +18609,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The tss_set function returns thrd_success on success or thrd_error if the request could not be honored. -7.25.7 Time functions
+7.25.7 Time functions
-7.25.7.1 The xtime_get function
+7.25.7.1 The xtime_get function
Synopsis
@@ -18636,9 +18636,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. xtime object is system dependent. -7.26 Date and time
+7.26 Date and time
-7.26.1 Components of time
+7.26.1 Components of time
The header <time.h> defines two macros, and declares several types and functions for manipulating time. Many functions deal with a calendar time that represents the current @@ -18689,9 +18689,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
307) The range [0, 60] for tm_sec allows for a positive leap second. -
7.26.2 Time manipulation functions
+7.26.2 Time manipulation functions
-7.26.2.1 The clock function
+7.26.2.1 The clock function
Synopsis
@@ -18714,7 +18714,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the program and its return value subtracted from the value returned by subsequent calls. -7.26.2.2 The difftime function
+7.26.2.2 The difftime function
Synopsis
@@ -18733,7 +18733,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.26.2.3 The mktime function
+7.26.2.3 The mktime function
Synopsis
@@ -18790,7 +18790,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. causes it to attempt to determine whether Daylight Saving Time is in effect for the specified time. -7.26.2.4 The time function
+7.26.2.4 The time function
Synopsis
@@ -18807,7 +18807,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. available. If timer is not a null pointer, the return value is also assigned to the object it points to. -7.26.3 Time conversion functions
+7.26.3 Time conversion functions
Except for the strftime function, these functions each return a pointer to one of two types of static objects: a broken-down time structure or an array of char. Execution of @@ -18816,7 +18816,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. previous call to any of them and the functions are not required to avoid data races. The implementation shall behave as if no other library functions call these functions. -
7.26.3.1 The asctime function
+7.26.3.1 The asctime function
Synopsis
@@ -18862,7 +18862,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.310) See 7.26.1. -
7.26.3.2 The ctime function
+7.26.3.2 The ctime function
Synopsis
@@ -18884,7 +18884,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. broken-down time as argument.Forward references: the localtime function (7.26.3.4). -
7.26.3.3 The gmtime function
+7.26.3.3 The gmtime function
Synopsis
@@ -18899,7 +18899,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The gmtime function returns a pointer to the broken-down time, or a null pointer if the specified time cannot be converted to UTC. -7.26.3.4 The localtime function
+7.26.3.4 The localtime function
Synopsis
@@ -18914,7 +18914,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The localtime function returns a pointer to the broken-down time, or a null pointer if the specified time cannot be converted to local time. -7.26.3.5 The strftime function
+7.26.3.5 The strftime function
Synopsis
@@ -19093,7 +19093,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. zero is returned and the contents of the array are indeterminate. -
7.27 Unicode utilities
+7.27 Unicode utilities
The header <uchar.h> declares types and functions for manipulating Unicode characters. @@ -19109,7 +19109,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. which is an unsigned integer type used for 32-bit characters and is the same type as uint_least32_t (also described in 7.20.1.2). -
7.27.1 Restartable multibyte/wide character conversion functions
+7.27.1 Restartable multibyte/wide character conversion functions
These functions have a parameter, ps, of type pointer to mbstate_t that points to an object that can completely describe the current conversion state of the associated @@ -19119,7 +19119,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. to avoid data races in this case. The implementation behaves as if no library function calls these functions with a null pointer for ps. -
7.27.1.1 The mbrtoc16 function
+7.27.1.1 The mbrtoc16 function
Synopsis
@@ -19173,7 +19173,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. sequence of redundant shift sequences (for implementations with state-dependent encodings). -7.27.1.2 The c16rtomb function
+7.27.1.2 The c16rtomb function
Synopsis
@@ -19203,7 +19203,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the function stores the value of the macro EILSEQ in errno and returns (size_t)(-1); the conversion state is unspecified. -7.27.1.3 The mbrtoc32 function
+7.27.1.3 The mbrtoc32 function
Synopsis
@@ -19257,7 +19257,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. sequence of redundant shift sequences (for implementations with state-dependent encodings). -7.27.1.4 The c32rtomb function
+7.27.1.4 The c32rtomb function
Synopsis
@@ -19289,9 +19289,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.28 Extended multibyte and wide character utilities
+7.28 Extended multibyte and wide character utilities
-7.28.1 Introduction
+7.28.1 Introduction
The header <wchar.h> defines four macros, and declares four data types, one tag, and many functions.313) @@ -19348,7 +19348,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
315) The value of the macro WEOF may differ from that of EOF and need not be negative. -
7.28.2 Formatted wide character input/output functions
+7.28.2 Formatted wide character input/output functions
The formatted wide character input/output functions shall behave as if there is a sequence point after the actions associated with each specifier.316) @@ -19357,7 +19357,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
316) The fwprintf functions perform writes to memory for the %n specifier. -
7.28.2.1 The fwprintf function
+7.28.2.1 The fwprintf function
Synopsis
@@ -19626,7 +19626,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.For a and A conversions, if FLT_RADIX is a power of 2, the value is correctly rounded to a hexadecimal floating number with the given precision. - Recommended practice +
Recommended practice
For a and A conversions, if FLT_RADIX is not a power of 2 and the result is not exactly representable in the given precision, the result should be one of the two adjacent numbers @@ -19647,7 +19647,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value if an output or encoding error occurred. - Environmental limits +
Environmental limits
The number of wide characters that can be produced by any single conversion shall be at least 4095. @@ -19692,7 +19692,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the case of fixed-point conversion by the source value as well. -
7.28.2.2 The fwscanf function
+7.28.2.2 The fwscanf function
Synopsis
@@ -19963,7 +19963,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.326) See ''future library directions'' (7.30.12). -
7.28.2.3 The swprintf function
+7.28.2.3 The swprintf function
Synopsis
@@ -19983,7 +19983,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. counting the terminating null wide character, or a negative value if an encoding error occurred or if n or more wide characters were requested to be written. -7.28.2.4 The swscanf function
+7.28.2.4 The swscanf function
Synopsis
@@ -20004,7 +20004,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. zero, in the event of an early matching failure. -7.28.2.5 The vfwprintf function
+7.28.2.5 The vfwprintf function
Synopsis
@@ -20052,7 +20052,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. invoke the va_arg macro, the value of arg after the return is indeterminate. -7.28.2.6 The vfwscanf function
+7.28.2.6 The vfwscanf function
Synopsis
@@ -20067,7 +20067,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vfwscanf function is equivalent to fwscanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vfwscanf function does not invoke the - va_end macro.327) + va_end macro.327)Returns
The vfwscanf function returns the value of the macro EOF if an input failure occurs @@ -20075,7 +20075,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.28.2.7 The vswprintf function
+7.28.2.7 The vswprintf function
Synopsis
@@ -20090,7 +20090,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vswprintf function is equivalent to swprintf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vswprintf function does not invoke the - va_end macro.327) + va_end macro.327)Returns
The vswprintf function returns the number of wide characters written in the array, not @@ -20098,7 +20098,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. occurred or if n or more wide characters were requested to be generated. -
7.28.2.8 The vswscanf function
+7.28.2.8 The vswscanf function
Synopsis
@@ -20112,7 +20112,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vswscanf function is equivalent to swscanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vswscanf function does not invoke the - va_end macro.327) + va_end macro.327)Returns
The vswscanf function returns the value of the macro EOF if an input failure occurs @@ -20120,7 +20120,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.28.2.9 The vwprintf function
+7.28.2.9 The vwprintf function
Synopsis
@@ -20133,14 +20133,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vwprintf function is equivalent to wprintf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vwprintf function does not invoke the - va_end macro.327) + va_end macro.327)Returns
The vwprintf function returns the number of wide characters transmitted, or a negative value if an output or encoding error occurred. -
7.28.2.10 The vwscanf function
+7.28.2.10 The vwscanf function
Synopsis
@@ -20153,7 +20153,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The vwscanf function is equivalent to wscanf, with the variable argument list replaced by arg, which shall have been initialized by the va_start macro (and possibly subsequent va_arg calls). The vwscanf function does not invoke the - va_end macro.327) + va_end macro.327)Returns
The vwscanf function returns the value of the macro EOF if an input failure occurs @@ -20161,7 +20161,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -
7.28.2.11 The wprintf function
+7.28.2.11 The wprintf function
Synopsis
@@ -20176,7 +20176,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wprintf function returns the number of wide characters transmitted, or a negative value if an output or encoding error occurred. -7.28.2.12 The wscanf function
+7.28.2.12 The wscanf function
Synopsis
@@ -20194,9 +20194,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -7.28.3 Wide character input/output functions
+7.28.3 Wide character input/output functions
-7.28.3.1 The fgetwc function
+7.28.3.1 The fgetwc function
Synopsis
@@ -20223,7 +20223,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Also, errno will be set to EILSEQ by input/output functions only if an encoding error occurs. -7.28.3.2 The fgetws function
+7.28.3.2 The fgetws function
Synopsis
@@ -20248,7 +20248,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. null pointer is returned. If a read or encoding error occurs during the operation, the array contents are indeterminate and a null pointer is returned. -7.28.3.3 The fputwc function
+7.28.3.3 The fputwc function
Synopsis
@@ -20268,7 +20268,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. error indicator for the stream is set and fputwc returns WEOF. If an encoding error occurs, the value of the macro EILSEQ is stored in errno and fputwc returns WEOF. -7.28.3.4 The fputws function
+7.28.3.4 The fputws function
Synopsis
@@ -20286,7 +20286,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. returns a nonnegative value. -7.28.3.5 The fwide function
+7.28.3.5 The fwide function
Synopsis
@@ -20309,7 +20309,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.329) If the orientation of the stream has already been determined, fwide does not change it. -
7.28.3.6 The getwc function
+7.28.3.6 The getwc function
Synopsis
@@ -20326,7 +20326,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The getwc function returns the next wide character from the input stream pointed to by stream, or WEOF. -7.28.3.7 The getwchar function
+7.28.3.7 The getwchar function
Synopsis
@@ -20345,7 +20345,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The getwchar function returns the next wide character from the input stream pointed to by stdin, or WEOF. -7.28.3.8 The putwc function
+7.28.3.8 The putwc function
Synopsis
@@ -20361,7 +20361,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The putwc function returns the wide character written, or WEOF. -
7.28.3.9 The putwchar function
+7.28.3.9 The putwchar function
Synopsis
@@ -20374,7 +20374,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The putwchar function returns the character written, or WEOF. -
7.28.3.10 The ungetwc function
+7.28.3.10 The ungetwc function
Synopsis
@@ -20411,7 +20411,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The ungetwc function returns the wide character pushed back, or WEOF if the operation fails. -7.28.4 General wide string utilities
+7.28.4 General wide string utilities
The header <wchar.h> declares a number of functions useful for wide string manipulation. Various methods are used for determining the lengths of the arrays, but in @@ -20427,9 +20427,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. zero wide characters. -
7.28.4.1 Wide string numeric conversion functions
+7.28.4.1 Wide string numeric conversion functions
-7.28.4.1.1 The wcstod, wcstof, and wcstold functions
+7.28.4.1.1 The wcstod, wcstof, and wcstold functions
Synopsis
@@ -20502,7 +20502,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If the subject sequence is empty or does not have the expected form, no conversion is performed; the value of nptr is stored in the object pointed to by endptr, provided that endptr is not a null pointer. - Recommended practice +Recommended practice
If the subject sequence has the hexadecimal form, FLT_RADIX is not a power of 2, and the result is not exactly representable, the result should be one of the two numbers in the @@ -20551,7 +20551,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. to the same internal floating value, but if not will round to adjacent values. -
7.28.4.1.2 The wcstol, wcstoll, wcstoul, and wcstoull functions
+7.28.4.1.2 The wcstol, wcstoll, wcstoul, and wcstoull functions
Synopsis
@@ -20625,9 +20625,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. LLONG_MAX, ULONG_MAX, or ULLONG_MAX is returned (according to the return type sign of the value, if any), and the value of the macro ERANGE is stored in errno. -7.28.4.2 Wide string copying functions
+7.28.4.2 Wide string copying functions
-7.28.4.2.1 The wcscpy function
+7.28.4.2.1 The wcscpy function
Synopsis
@@ -20643,7 +20643,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcscpy function returns the value of s1. -7.28.4.2.2 The wcsncpy function
+7.28.4.2.2 The wcsncpy function
Synopsis
@@ -20669,7 +20669,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. result will not be null-terminated. -7.28.4.2.3 The wmemcpy function
+7.28.4.2.3 The wmemcpy function
Synopsis
@@ -20690,7 +20690,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -7.28.4.2.4 The wmemmove function
+7.28.4.2.4 The wmemmove function
Synopsis
@@ -20708,9 +20708,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The wmemmove function returns the value of s1. -
7.28.4.3 Wide string concatenation functions
+7.28.4.3 Wide string concatenation functions
-7.28.4.3.1 The wcscat function
+7.28.4.3.1 The wcscat function
Synopsis
@@ -20726,7 +20726,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The wcscat function returns the value of s1. -
7.28.4.3.2 The wcsncat function
+7.28.4.3.2 The wcsncat function
Synopsis
@@ -20751,13 +20751,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wcslen(s1)+n+1. -7.28.4.4 Wide string comparison functions
+7.28.4.4 Wide string comparison functions
Unless explicitly stated otherwise, the functions described in this subclause order two wide characters the same way as two integers of the underlying integer type designated by wchar_t. -
7.28.4.4.1 The wcscmp function
+7.28.4.4.1 The wcscmp function
Synopsis
@@ -20773,7 +20773,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. accordingly as the wide string pointed to by s1 is greater than, equal to, or less than the wide string pointed to by s2. -7.28.4.4.2 The wcscoll function
+7.28.4.4.2 The wcscoll function
Synopsis
@@ -20794,7 +20794,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wide string pointed to by s2 when both are interpreted as appropriate to the current locale. -7.28.4.4.3 The wcsncmp function
+7.28.4.4.3 The wcsncmp function
Synopsis
@@ -20812,7 +20812,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. accordingly as the possibly null-terminated array pointed to by s1 is greater than, equal to, or less than the possibly null-terminated array pointed to by s2. -7.28.4.4.4 The wcsxfrm function
+7.28.4.4.4 The wcsxfrm function
Synopsis
@@ -20842,7 +20842,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. 1 + wcsxfrm(NULL, s, 0)-7.28.4.4.5 The wmemcmp function
+7.28.4.4.5 The wmemcmp function
Synopsis
@@ -20859,9 +20859,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. accordingly as the object pointed to by s1 is greater than, equal to, or less than the object pointed to by s2. -7.28.4.5 Wide string search functions
+7.28.4.5 Wide string search functions
-7.28.4.5.1 The wcschr function
+7.28.4.5.1 The wcschr function
Synopsis
@@ -20876,7 +20876,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcschr function returns a pointer to the located wide character, or a null pointer if the wide character does not occur in the wide string. -7.28.4.5.2 The wcscspn function
+7.28.4.5.2 The wcscspn function
Synopsis
@@ -20892,7 +20892,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The wcscspn function returns the length of the segment. -
7.28.4.5.3 The wcspbrk function
+7.28.4.5.3 The wcspbrk function
Synopsis
@@ -20907,7 +20907,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcspbrk function returns a pointer to the wide character in s1, or a null pointer if no wide character from s2 occurs in s1. -7.28.4.5.4 The wcsrchr function
+7.28.4.5.4 The wcsrchr function
Synopsis
@@ -20922,7 +20922,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcsrchr function returns a pointer to the wide character, or a null pointer if c does not occur in the wide string. -7.28.4.5.5 The wcsspn function
+7.28.4.5.5 The wcsspn function
Synopsis
@@ -20938,7 +20938,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcsspn function returns the length of the segment. -7.28.4.5.6 The wcsstr function
+7.28.4.5.6 The wcsstr function
Synopsis
@@ -20955,7 +20955,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wide string is not found. If s2 points to a wide string with zero length, the function returns s1. -7.28.4.5.7 The wcstok function
+7.28.4.5.7 The wcstok function
Synopsis
@@ -21012,7 +21012,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. t = wcstok(NULL, L"?", &ptr1); // t is a null pointer-7.28.4.5.8 The wmemchr function
+7.28.4.5.8 The wmemchr function
Synopsis
@@ -21029,9 +21029,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the wide character does not occur in the object. -7.28.4.6 Miscellaneous functions
+7.28.4.6 Miscellaneous functions
-7.28.4.6.1 The wcslen function
+7.28.4.6.1 The wcslen function
Synopsis
@@ -21045,7 +21045,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcslen function returns the number of wide characters that precede the terminating null wide character. -7.28.4.6.2 The wmemset function
+7.28.4.6.2 The wmemset function
Synopsis
@@ -21059,9 +21059,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The wmemset function returns the value of s. -
7.28.5 Wide character time conversion functions
+7.28.5 Wide character time conversion functions
-7.28.5.1 The wcsftime function
+7.28.5.1 The wcsftime function
Synopsis
@@ -21091,7 +21091,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wide character. Otherwise, zero is returned and the contents of the array are indeterminate. -7.28.6 Extended multibyte/wide character conversion utilities
+7.28.6 Extended multibyte/wide character conversion utilities
The header <wchar.h> declares an extended set of functions useful for conversion between multibyte characters and wide characters. @@ -21128,9 +21128,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. character string. -
7.28.6.1 Single-byte/wide character conversion functions
+7.28.6.1 Single-byte/wide character conversion functions
-7.28.6.1.1 The btowc function
+7.28.6.1.1 The btowc function
Synopsis
@@ -21146,7 +21146,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. does not constitute a valid single-byte character in the initial shift state. Otherwise, it returns the wide character representation of that character. -7.28.6.1.2 The wctob function
+7.28.6.1.2 The wctob function
Synopsis
@@ -21163,9 +21163,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. length one in the initial shift state. Otherwise, it returns the single-byte representation of that character as an unsigned char converted to an int. -7.28.6.2 Conversion state functions
+7.28.6.2 Conversion state functions
-7.28.6.2.1 The mbsinit function
+7.28.6.2.1 The mbsinit function
Synopsis
@@ -21181,7 +21181,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The mbsinit function returns nonzero if ps is a null pointer or if the referenced object describes an initial conversion state; otherwise, it returns zero. -7.28.6.3 Restartable multibyte/wide character conversion functions
+7.28.6.3 Restartable multibyte/wide character conversion functions
These functions differ from the corresponding multibyte character functions of 7.22.7 (mblen, mbtowc, and wctomb) in that they have an extra parameter, ps, of type @@ -21195,7 +21195,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Also unlike their corresponding functions, the return value does not represent whether the encoding is state-dependent. -
7.28.6.3.1 The mbrlen function
+7.28.6.3.1 The mbrlen function
Synopsis
@@ -21217,7 +21217,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.Forward references: the mbrtowc function (7.28.6.3.2). -
7.28.6.3.2 The mbrtowc function
+7.28.6.3.2 The mbrtowc function
Synopsis
@@ -21268,7 +21268,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. sequence of redundant shift sequences (for implementations with state-dependent encodings). -7.28.6.3.3 The wcrtomb function
+7.28.6.3.3 The wcrtomb function
Synopsis
@@ -21296,7 +21296,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the function stores the value of the macro EILSEQ in errno and returns (size_t)(-1); the conversion state is unspecified. -7.28.6.4 Restartable multibyte/wide string conversion functions
+7.28.6.4 Restartable multibyte/wide string conversion functions
These functions differ from the corresponding multibyte string functions of 7.22.8 (mbstowcs and wcstombs) in that they have an extra parameter, ps, of type pointer to @@ -21313,7 +21313,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. to reflect the amount of the source processed by that invocation. -
7.28.6.4.1 The mbsrtowcs function
+7.28.6.4.1 The mbsrtowcs function
Synopsis
@@ -21356,7 +21356,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.337) Thus, the value of len is ignored if dst is a null pointer. -
7.28.6.4.2 The wcsrtombs function
+7.28.6.4.2 The wcsrtombs function
Synopsis
@@ -21401,9 +21401,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. include those necessary to reach the initial shift state immediately before the null byte. -7.29 Wide character classification and mapping utilities
+7.29 Wide character classification and mapping utilities
-7.29.1 Introduction
+7.29.1 Introduction
The header <wctype.h> defines one macro, and declares three data types and many functions.339) @@ -21447,7 +21447,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
339) See ''future library directions'' (7.30.13). -
7.29.2 Wide character classification utilities
+7.29.2 Wide character classification utilities
The header <wctype.h> declares several functions useful for classifying wide characters. @@ -21457,7 +21457,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. term control wide character refers to a member of a locale-specific set of wide characters that are not printing wide characters. -
7.29.2.1 Wide character classification functions
+7.29.2.1 Wide character classification functions
The functions in this subclause return nonzero (true) if and only if the value of the argument wc conforms to that in the description of the function. @@ -21476,7 +21476,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. && iswspace(wc) is true, but not both. -
7.29.2.1.1 The iswalnum function
+7.29.2.1.1 The iswalnum function
Synopsis
@@ -21487,7 +21487,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The iswalnum function tests for any wide character for which iswalpha or iswdigit is true. -7.29.2.1.2 The iswalpha function
+7.29.2.1.2 The iswalpha function
Synopsis
@@ -21507,7 +21507,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wide characters; all four combinations are possible. -7.29.2.1.3 The iswblank function
+7.29.2.1.3 The iswblank function
Synopsis
@@ -21521,7 +21521,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. characters are the following: space (L' '), and horizontal tab (L'\t'). In the "C" locale, iswblank returns true only for the standard blank characters. -7.29.2.1.4 The iswcntrl function
+7.29.2.1.4 The iswcntrl function
Synopsis
@@ -21531,7 +21531,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The iswcntrl function tests for any control wide character. -
7.29.2.1.5 The iswdigit function
+7.29.2.1.5 The iswdigit function
Synopsis
@@ -21542,7 +21542,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The iswdigit function tests for any wide character that corresponds to a decimal-digit character (as defined in 5.2.1). -7.29.2.1.6 The iswgraph function
+7.29.2.1.6 The iswgraph function
Synopsis
@@ -21564,7 +21564,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. characters other than ' '. -7.29.2.1.7 The iswlower function
+7.29.2.1.7 The iswlower function
Synopsis
@@ -21576,7 +21576,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. letter or is one of a locale-specific set of wide characters for which none of iswcntrl, iswdigit, iswpunct, or iswspace is true. -7.29.2.1.8 The iswprint function
+7.29.2.1.8 The iswprint function
Synopsis
@@ -21586,7 +21586,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The iswprint function tests for any printing wide character. -
7.29.2.1.9 The iswpunct function
+7.29.2.1.9 The iswpunct function
Synopsis
@@ -21596,9 +21596,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The iswpunct function tests for any printing wide character that is one of a locale- specific set of punctuation wide characters for which neither iswspace nor iswalnum - is true.342) + is true.342) -
7.29.2.1.10 The iswspace function
+7.29.2.1.10 The iswspace function
Synopsis
@@ -21614,7 +21614,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. set of white-space wide characters for which none of iswalnum, iswgraph, or iswpunct is true. -7.29.2.1.11 The iswupper function
+7.29.2.1.11 The iswupper function
Synopsis
@@ -21626,7 +21626,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. letter or is one of a locale-specific set of wide characters for which none of iswcntrl, iswdigit, iswpunct, or iswspace is true. -7.29.2.1.12 The iswxdigit function
+7.29.2.1.12 The iswxdigit function
Synopsis
@@ -21637,13 +21637,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The iswxdigit function tests for any wide character that corresponds to a hexadecimal-digit character (as defined in 6.4.4.1). -7.29.2.2 Extensible wide character classification functions
+7.29.2.2 Extensible wide character classification functions
The functions wctype and iswctype provide extensible wide character classification as well as testing equivalent to that performed by the functions described in the previous subclause (7.29.2.1). -
7.29.2.2.1 The iswctype function
+7.29.2.2.1 The iswctype function
Synopsis
@@ -21678,7 +21678,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function returns zero (false).Forward references: the wctype function (7.29.2.2.2). -
7.29.2.2.2 The wctype function
+7.29.2.2.2 The wctype function
Synopsis
@@ -21698,13 +21698,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. as the second argument to the iswctype function; otherwise, it returns zero. -7.29.3 Wide character case mapping utilities
+7.29.3 Wide character case mapping utilities
The header <wctype.h> declares several functions useful for mapping wide characters. -
7.29.3.1 Wide character case mapping functions
+7.29.3.1 Wide character case mapping functions
-7.29.3.1.1 The towlower function
+7.29.3.1.1 The towlower function
Synopsis
@@ -21721,7 +21721,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. characters (always the same one for any given locale); otherwise, the argument is returned unchanged. -7.29.3.1.2 The towupper function
+7.29.3.1.2 The towupper function
Synopsis
@@ -21738,14 +21738,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. characters (always the same one for any given locale); otherwise, the argument is returned unchanged. -7.29.3.2 Extensible wide character case mapping functions
+7.29.3.2 Extensible wide character case mapping functions
The functions wctrans and towctrans provide extensible wide character mapping as well as case mapping equivalent to that performed by the functions described in the previous subclause (7.29.3.1). -
7.29.3.2.1 The towctrans function
+7.29.3.2.1 The towctrans function
Synopsis
@@ -21767,7 +21767,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The towctrans function returns the mapped value of wc using the mapping described by desc. If desc is zero, the towctrans function returns the value of wc. -7.29.3.2.2 The wctrans function
+7.29.3.2.2 The wctrans function
Synopsis
@@ -21787,12 +21787,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. as the second argument to the towctrans function; otherwise, it returns zero. -7.30 Future library directions
+7.30 Future library directions
The following names are grouped under individual headers for convenience. All external names described below are reserved no matter what headers are included by the program. -
7.30.1 Complex arithmetic
+7.30.1 Complex arithmetic
The function names
@@ -21802,37 +21802,37 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. and the same names suffixed with f or l may be added to the declarations in the <complex.h> header. -7.30.2 Character handling
+7.30.2 Character handling
Function names that begin with either is or to, and a lowercase letter may be added to the declarations in the <ctype.h> header. -
7.30.3 Errors
+7.30.3 Errors
Macros that begin with E and a digit or E and an uppercase letter may be added to the declarations in the <errno.h> header. -
7.30.4 Format conversion of integer types
+7.30.4 Format conversion of integer types
Macro names beginning with PRI or SCN followed by any lowercase letter or X may be added to the macros defined in the <inttypes.h> header. -
7.30.5 Localization
+7.30.5 Localization
Macros that begin with LC_ and an uppercase letter may be added to the definitions in the <locale.h> header. -
7.30.6 Signal handling
+7.30.6 Signal handling
Macros that begin with either SIG and an uppercase letter or SIG_ and an uppercase letter may be added to the definitions in the <signal.h> header. -
7.30.7 Boolean type and values
+7.30.7 Boolean type and values
The ability to undefine and perhaps then redefine the macros bool, true, and false is an obsolescent feature. -
7.30.8 Integer types
+7.30.8 Integer types
Typedef names beginning with int or uint and ending with _t may be added to the types defined in the <stdint.h> header. Macro names beginning with INT or UINT @@ -21840,7 +21840,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. <stdint.h> header. -
7.30.9 Input/output
+7.30.9 Input/output
Lowercase letters may be added to the conversion specifiers and length modifiers in fprintf and fscanf. Other characters may be used in extensions. @@ -21848,17 +21848,17 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The use of ungetc on a binary stream where the file position indicator is zero prior to * the call is an obsolescent feature. -
7.30.10 General utilities
+7.30.10 General utilities
Function names that begin with str and a lowercase letter may be added to the declarations in the <stdlib.h> header. -
7.30.11 String handling
+7.30.11 String handling
Function names that begin with str, mem, or wcs and a lowercase letter may be added to the declarations in the <string.h> header. -
7.30.12 Extended multibyte and wide character utilities
+7.30.12 Extended multibyte and wide character utilities
Function names that begin with wcs and a lowercase letter may be added to the declarations in the <wchar.h> header. @@ -21866,14 +21866,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Lowercase letters may be added to the conversion specifiers and length modifiers in fwprintf and fwscanf. Other characters may be used in extensions. -
7.30.13 Wide character classification and mapping utilities
+7.30.13 Wide character classification and mapping utilities
<wctype.h>Function names that begin with is or to and a lowercase letter may be added to the declarations in the <wctype.h> header. -
Annex A
+Annex A
(informative) @@ -21881,9 +21881,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. NOTE The notation is described in 6.1. --A.1 Lexical grammar
+A.1 Lexical grammar
-A.1.1 Lexical elements
+A.1.1 Lexical elements
(6.4) token:keyword @@ -21902,7 +21902,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. punctuator each non-white-space character that cannot be one of the above-A.1.2 Keywords
+A.1.2 Keywords
(6.4.1) keyword: one ofalignof goto union @@ -21921,7 +21921,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. float switch _Thread_local for typedef-A.1.3 Identifiers
+A.1.3 Identifiers
(6.4.2.1) identifier:identifier-nondigit @@ -21943,7 +21943,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-0 1 2 3 4 5 6 7 8 9-A.1.4 Universal character names
+A.1.4 Universal character names
(6.4.3) universal-character-name:\u hex-quad @@ -21953,7 +21953,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. hexadecimal-digit hexadecimal-digit hexadecimal-digit hexadecimal-digit-A.1.5 Constants
+A.1.5 Constants
(6.4.4) constant:integer-constant @@ -22092,7 +22092,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. \x hexadecimal-digit hexadecimal-escape-sequence hexadecimal-digit-A.1.6 String literals
+A.1.6 String literals
(6.4.5) string-literal:encoding-prefixopt " s-char-sequenceopt "@@ -22112,7 +22112,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the double-quote ", backslash \, or new-line character escape-sequenceA.1.7 Punctuators
+A.1.7 Punctuators
(6.4.6) punctuator: one of@@ -22124,7 +22124,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. , # ## <: :> <% %> %: %:%:-A.1.8 Header names
+A.1.8 Header names
(6.4.7) header-name:< h-char-sequence > @@ -22146,7 +22146,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. any member of the source character set except the new-line character and "-A.1.9 Preprocessing numbers
+A.1.9 Preprocessing numbers
(6.4.8) pp-number:@@ -22160,9 +22160,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. pp-number P sign pp-number .-A.2 Phrase structure grammar
+A.2 Phrase structure grammar
-A.2.1 Expressions
+A.2.1 Expressions
(6.5.1) primary-expression:identifier @@ -22281,7 +22281,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-conditional-expression-A.2.2 Declarations
+A.2.2 Declarations
(6.7) declaration:declaration-specifiers init-declarator-listopt ; @@ -22471,7 +22471,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.-_Static_assert ( constant-expression , string-literal ) ;-A.2.3 Statements
+A.2.3 Statements
(6.8) statement:labeled-statement @@ -22518,7 +22518,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. break ; return expressionopt ;-A.2.4 External definitions
+A.2.4 External definitions
(6.9) translation-unit:external-declaration @@ -22535,7 +22535,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. declaration declaration-list declaration-A.3 Preprocessing directives
+A.3 Preprocessing directives
(6.10) preprocessing-file:groupopt@@ -22606,18 +22606,18 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.the new-line character-Annex B
+Annex B
(informative) Library summary-B.1 Diagnostics
+B.1 Diagnostics
NDEBUG static_assert void assert(scalar expression);-B.2 Complex
+B.2 Complex
@@ -22696,7 +22696,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. float crealf(float complex z); long double creall(long double complex z);-B.3 Character handling
+B.3 Character handling
int isalnum(int c); int isalpha(int c); @@ -22713,13 +22713,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. int tolower(int c); int toupper(int c);-B.4 Errors
+B.4 Errors
EDOM EILSEQ ERANGE errno __STDC_WANT_LIB_EXT1__ errno_t-B.5 Floating-point environment
+B.5 Floating-point environment
fenv_t FE_OVERFLOW FE_TOWARDZERO @@ -22741,7 +22741,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. int fesetenv(const fenv_t *envp); int feupdateenv(const fenv_t *envp);-B.6 Characteristics of floating types
+B.6 Characteristics of floating types
FLT_ROUNDS DBL_DIG FLT_MAX FLT_EVAL_METHOD LDBL_DIG DBL_MAX @@ -22758,7 +22758,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. DECIMAL_DIG DBL_MAX_10_EXP FLT_DIG LDBL_MAX_10_EXP-B.7 Format conversion of integer types
+B.7 Format conversion of integer types
imaxdiv_t @@ -22784,13 +22784,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. uintmax_t wcstoumax(const wchar_t * restrict nptr, wchar_t ** restrict endptr, int base);-B.8 Alternative spellings
+B.8 Alternative spellings
and bitor not_eq xor and_eq compl or xor_eq bitand not or_eq-B.9 Sizes of integer types
+B.9 Sizes of integer types
CHAR_BIT CHAR_MAX INT_MIN ULONG_MAX SCHAR_MIN MB_LEN_MAX INT_MAX LLONG_MIN @@ -22798,14 +22798,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. UCHAR_MAX SHRT_MAX LONG_MIN ULLONG_MAX CHAR_MIN USHRT_MAX LONG_MAX-B.10 Localization
+B.10 Localization
struct lconv LC_ALL LC_CTYPE LC_NUMERIC NULL LC_COLLATE LC_MONETARY LC_TIME char *setlocale(int category, const char *locale); struct lconv *localeconv(void);-B.11 Mathematics
+B.11 Mathematics
@@ -23006,13 +23006,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. int islessgreater(real-floating x, real-floating y); int isunordered(real-floating x, real-floating y);B.12 Nonlocal jumps
+B.12 Nonlocal jumps
jmp_buf int setjmp(jmp_buf env); _Noreturn void longjmp(jmp_buf env, int val);-B.13 Signal handling
+B.13 Signal handling
sig_atomic_t SIG_IGN SIGILL SIGTERM @@ -23021,12 +23021,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. void (*signal(int sig, void (*func)(int)))(int); int raise(int sig);-B.14 Alignment
+B.14 Alignment
alignas __alignas_is_defined-B.15 Variable arguments
+B.15 Variable arguments
va_list type va_arg(va_list ap, type); @@ -23034,7 +23034,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. void va_end(va_list ap); void va_start(va_list ap, parmN);-B.16 Atomics
+B.16 Atomics
@@ -23102,14 +23102,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. void atomic_flag_clear_explicit( volatile atomic_flag *object, memory_order order);-B.17 Boolean type and values
+B.17 Boolean type and values
bool true false __bool_true_false_are_defined-B.18 Common definitions
+B.18 Common definitions
ptrdiff_t max_align_t NULL size_t wchar_t @@ -23117,7 +23117,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. __STDC_WANT_LIB_EXT1__ rsize_t-B.19 Integer types
+B.19 Integer types
intN_t INT_LEASTN_MIN PTRDIFF_MAX @@ -23136,7 +23136,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. __STDC_WANT_LIB_EXT1__ RSIZE_MAX-B.20 Input/output
+B.20 Input/output
@@ -23258,7 +23258,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. va_list arg); char *gets_s(char *s, rsize_t n);B.21 General utilities
+B.21 General utilities
@@ -23357,7 +23357,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. char * restrict dst, rsize_t dstmax, const wchar_t * restrict src, rsize_t len);-B.22 String handling
+B.22 String handling
@@ -23423,7 +23423,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. size_t strerrorlen_s(errno_t errnum); size_t strnlen_s(const char *s, size_t maxsize);-B.23 Type-generic math
+B.23 Type-generic math
acos sqrt fmod nextafter asin fabs frexp nexttoward @@ -23441,7 +23441,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. log fmax lround cproj pow fmin nearbyint creal-B.24 Threads
+B.24 Threads
ONCE_FLAG_INIT mtx_plain @@ -23483,7 +23483,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. int tss_set(tss_t key, void *val); int xtime_get(xtime *xt, int base);-B.25 Date and time
+B.25 Date and time
NULL size_t time_t @@ -23512,7 +23512,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. struct tm *localtime_s(const time_t * restrict timer, struct tm * restrict result);-B.26 Unicode utilities
+B.26 Unicode utilities
mbstate_t size_t char16_t char32_t size_t mbrtoc16(char16_t * restrict pc16, @@ -23526,7 +23526,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. size_t c32rtomb(char * restrict s, char32_t c32, mbstate_t * restrict ps);-B.27 Extended multibyte/wide character utilities
+B.27 Extended multibyte/wide character utilities
@@ -23709,7 +23709,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. const wchar_t ** restrict src, rsize_t len, mbstate_t * restrict ps);B.28 Wide character classification and mapping utilities
+B.28 Wide character classification and mapping utilities
wint_t wctrans_t wctype_t WEOF @@ -23732,7 +23732,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wint_t towctrans(wint_t wc, wctrans_t desc); wctrans_t wctrans(const char *property);-Annex C
+Annex C
(informative) @@ -23762,7 +23762,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -Annex D
+Annex D
(normative) @@ -23770,7 +23770,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. This clause lists the hexadecimal code values that are valid in universal character names in identifiers. -D.1 Ranges of characters allowed
+D.1 Ranges of characters allowed
00A8, 00AA, 00AD, 00AF, 00B2-00B5, 00B7-00BA, 00BC-00BE, 00C0-00D6, 00D8-00F6, 00F8-00FF @@ -23791,12 +23791,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. 60000-6FFFD, 70000-7FFFD, 80000-8FFFD, 90000-9FFFD, A0000-AFFFD, B0000-BFFFD, C0000-CFFFD, D0000-DFFFD, E0000-EFFFD -
D.2 Ranges of characters disallowed initially
+D.2 Ranges of characters disallowed initially
0300-036F, 1DC0-1DFF, 20D0-20FF, FE20-FE2F -
Annex E
+Annex E
(informative) @@ -23884,12 +23884,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. #define LDBL_EPSILON 1E-9 #define LDBL_MIN 1E-37-Annex F
+Annex F
(normative) IEC 60559 floating-point arithmetic-F.1 Introduction
+F.1 Introduction
This annex specifies C language support for the IEC 60559 floating-point standard. The IEC 60559 floating-point standard is specifically Binary floating-point arithmetic for @@ -23910,7 +23910,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. specifications. -
F.2 Types
+F.2 Types
The C floating types match the IEC 60559 formats as follows:
The long double type should match an IEC 60559 extended format.
@@ -23938,7 +23938,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
all double values.
-F.2.1 Infinities, signed zeros, and NaNs
+
This specification does not define the behavior of signaling NaNs.346) It generally uses
the term NaN to denote quiet NaNs. The NAN and INFINITY macros and the nan
@@ -23949,7 +23949,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
sufficient for closure of the arithmetic.
-F.3 Operators and functions
+
C operators and functions provide IEC 60559 required and recommended facilities as listed below. @@ -24030,7 +24030,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. macros defined in 7.12.3 do not distinguish signaling from quiet NaNs).
If the integer type is _Bool, 6.3.1.2 applies and no floating-point exceptions are raised
(even for NaN). Otherwise, if the floating value is infinite or NaN or if the integral part
@@ -24049,7 +24049,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
<math.h>.
-F.5 Binary-decimal conversion
+
Conversion from the widest supported IEC 60559 format to decimal with
DECIMAL_DIG digits and back is the identity function.348)
@@ -24076,7 +24076,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
DBL_DIG are 18 and 15, respectively, for these formats.)
-F.6 The return statement
+
349) Assignment removes any extra range and precision.
-F.7 Contracted expressions
+
A contracted expression is correctly rounded (once) and treats infinities, NaNs, signed zeros, subnormals, and the rounding directions in a manner consistent with the basic arithmetic operations covered by IEC 60559. - Recommended practice +
A contracted expression should raise floating-point exceptions in a manner generally
consistent with the basic arithmetic operations. *
-F.8 Floating-point environment
+
The floating-point environment defined in <fenv.h> includes the IEC 60559 floating- point exception status flags and directed-rounding control modes. It includes also @@ -24106,7 +24106,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
350) This specification does not require dynamic rounding precision nor trap enablement modes.
-F.8.1 Environment management
+
IEC 60559 requires that floating-point operations implicitly raise floating-point exception
status flags, and that rounding control modes can be set explicitly to affect result values of
@@ -24125,7 +24125,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
which allows certain optimizations (see F.9).
-F.8.2 Translation
+
During translation the IEC 60559 default modes are in effect:
The implementation should produce a diagnostic message for each translation-time
floating-point exception, other than ''inexact'';352) the implementation should then
@@ -24146,7 +24146,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
strtod, provide execution-time conversion of numeric strings.
-F.8.3 Execution
+
At program startup the floating-point environment is initialized as prescribed by IEC 60559: @@ -24158,7 +24158,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
An arithmetic constant expression of floating type, other than one in an initializer for an
object that has static or thread storage duration, is evaluated (as if) during execution; thus,
@@ -24198,7 +24198,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
const static double one_third = 1.0/3.0;
-F.8.5 Initialization
+
All computation for automatic initialization is done (as if) at execution time; thus, it is
affected by any operative modes and raises floating-point exceptions as required by
@@ -24244,7 +24244,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
could be done at translation time, regardless of the expression evaluation method.
-F.8.6 Changing the environment
+
Operations defined in 6.5 and functions and macros defined for the standard libraries
change floating-point status flags and control modes just as indicated by their
@@ -24256,12 +24256,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
''inexact'', or ''underflow'' and ''inexact''), then ''overflow'' or ''underflow'' is raised
before ''inexact''.
-F.9 Optimization
+
This section identifies code transformations that might subvert IEC 60559-specified
behavior, and others that do not.
-F.9.1 Global transformations
+
Floating-point arithmetic operations and external function calls may entail side effects which optimization shall honor, at least where the state of the FENV_ACCESS pragma is @@ -24294,7 +24294,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
if (0 < n) x + 1;-
x/2 <-> x x 0.5 Although similar transformations involving inexact constants
@@ -24350,7 +24350,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. for complex z. --F.9.3 Relational operators
+F.9.3 Relational operators
x != x -> false The expression x != x is true if x is a NaN. x = x -> true The expression x = x is false if x is a NaN. @@ -24402,7 +24402,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. f();
The implementation shall honor floating-point exceptions raised by execution-time constant arithmetic wherever the state of the FENV_ACCESS pragma is ''on''. (See F.8.4 @@ -24417,7 +24417,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
357) 0 - 0 yields -0 instead of +0 just when the rounding direction is downward.
-F.10 Mathematics
+
This subclause contains specifications of <math.h> facilities that are particularly suited for IEC 60559 implementations. @@ -24466,7 +24466,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. For families of functions, the specifications apply to all of the functions even though only the principal function is shown. Unless otherwise specified, where the symbol ''(+-)'' occurs in both an argument and the result, the result has the same sign as the argument. - Recommended practice +
If a function with one or more NaN arguments returns a NaN result, the result should be
the same as one of the NaN arguments (after possible type conversion), except perhaps
@@ -24480,9 +24480,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
avoiding them would be too costly.
-F.10.1 Trigonometric functions
+
When the correct result is representable in the range of the return type, the returned value
is exact and is independent of the current rounding direction mode.
@@ -24662,11 +24662,11 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
unspecified and the ''invalid'' floating-point exception is raised.
-F.10.3.6 The ldexp functions
+
On a binary system, ldexp(x, exp) is equivalent to scalbn(x, exp).
-F.10.3.7 The log functions
+
The returned value is exact and is independent of the current rounding direction mode.
-F.10.4.3 The hypot functions
+
sqrt is fully specified as a basic arithmetic operation in IEC 60559. The returned value
is dependent on the current rounding direction mode.
-F.10.5 Error and gamma functions
+
The nearbyint functions use IEC 60559 rounding according to the current rounding direction. They do not raise the ''inexact'' floating-point exception if the result differs in @@ -24904,12 +24904,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The rint functions differ from the nearbyint functions only in that they do raise the
''inexact'' floating-point exception if the result differs in value from the argument.
-F.10.6.5 The lrint and llrint functions
+
The lrint and llrint functions provide floating-to-integer conversion as prescribed
by IEC 60559. They round according to the current rounding direction. If the rounded
@@ -24918,7 +24918,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
exception and the result differs from the argument, they raise the ''inexact'' floating-point
exception.
-F.10.6.6 The round functions
+
The lround and llround functions differ from the lrint and llrint functions
with the default rounding direction just in that the lround and llround functions
round halfway cases away from zero and need not raise the ''inexact'' floating-point
exception for non-integer arguments that round to within the range of the return type.
-F.10.6.8 The trunc functions
+
The trunc functions use IEC 60559 rounding toward zero (regardless of the current
rounding direction). The returned value is exact.
@@ -24969,9 +24969,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
functions may, but are not required to, raise the ''inexact'' floating-point exception for
finite non-integer arguments.
-F.10.7 Remainder functions
+
The remainder functions are fully specified as a basic arithmetic operation in
IEC 60559.
@@ -25005,7 +25005,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
When subnormal results are supported, the returned value is exact and is independent of
the current rounding direction mode.
-F.10.7.3 The remquo functions
+
The remquo functions follow the specifications for the remainder functions. They
have no further specifications special to IEC 60559 implementations.
@@ -25013,21 +25013,21 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
When subnormal results are supported, the returned value is exact and is independent of
the current rounding direction mode.
-F.10.8 Manipulation functions
+
copysign is specified in the Appendix to IEC 60559.
The returned value is exact and is independent of the current rounding direction mode.
-F.10.8.2 The nan functions
+
All IEC 60559 implementations support quiet NaNs, in all floating formats.
The returned value is exact and is independent of the current rounding direction mode.
-F.10.8.3 The nextafter functions
+
No additional requirements beyond those on nextafter.
@@ -25047,13 +25047,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
current rounding direction mode.
-F.10.9 Maximum, minimum, and positive difference functions
+
No additional requirements.
-F.10.9.2 The fmax functions
+
If just one argument is a NaN, the fmax functions return the other argument (if both
arguments are NaNs, the functions return a NaN).
@@ -25070,15 +25070,15 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
return +0; however, implementation in software might be impractical.
-F.10.9.3 The fmin functions
+
The fmin functions are analogous to the fmax functions (see F.10.9.2).
The returned value is exact and is independent of the current rounding direction mode.
-F.10.10 Floating multiply-add
+
Relational operators and their corresponding comparison macros (7.12.14) produce
equivalent result values, even if argument values are represented in wider formats. Thus,
@@ -25106,12 +25106,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
operands of relational operators to their semantic types.
-Annex G
+
(normative) IEC 60559-compatible complex arithmetic-
This annex supplements annex F to specify complex arithmetic for compatibility with
IEC 60559 real floating-point arithmetic. An implementation that defines *
@@ -25122,7 +25122,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
to these specifications.
-G.2 Types
+
There is a new keyword _Imaginary, which is used to specify imaginary types. It is used as a type specifier within declaration specifiers in the same way as _Complex is @@ -25141,7 +25141,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The imaginary type domain comprises the imaginary types.
-G.3 Conventions
+
A complex or imaginary value with at least one infinite part is regarded as an infinity
(even if its other part is a NaN). A complex or imaginary value is a finite number if each
@@ -25153,14 +25153,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-G.4 Conversions
+
Conversions among imaginary types follow rules analogous to those for real floating
types.
-G.4.2 Real and imaginary
+
When a value of imaginary type is converted to a real type other than _Bool,363) the result is a positive zero. @@ -25172,7 +25172,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
363) See 6.3.1.2.
-G.4.3 Imaginary and complex
+
When a value of imaginary type is converted to a complex type, the real part of the
complex result value is a positive zero and the imaginary part of the complex result value
@@ -25182,7 +25182,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
complex value is discarded and the value of the imaginary part is converted according to
the conversion rules for the corresponding real types.
-G.5 Binary operators
+
The following subclauses supplement 6.5 in order to specify the type of the result for an
operation with an imaginary operand.
@@ -25199,7 +25199,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
-G.5.1 Multiplicative operators
+
If one operand has real type and the other operand has imaginary type, then the result has
@@ -25370,7 +25370,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
(at least where the state for CX_LIMITED_RANGE is ''off'').
-G.5.2 Additive operators
+
If both operands have imaginary type, then the result has imaginary type. (If one operand @@ -25391,7 +25391,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
x + iy (x (+-) u) + iy x + i(y (+-) v) (x (+-) u) + i(y (+-) v)-
The macros
@@ -25461,9 +25461,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. other part is a NaN. -G.6.1 Trigonometric functions
+G.6.1 Trigonometric functions
-G.6.1.1 The cacos functions
+G.6.1.1 The cacos functions
The cpow functions raise floating-point exceptions if appropriate for the calculation of
the parts of the result, and may also raise spurious floating-point exceptions.366)
@@ -25682,7 +25682,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
implementations that treat special cases more carefully.
-G.6.4.2 The csqrt functions
+
Type-generic macros that accept complex arguments also accept imaginary arguments. If
an argument is imaginary, the macro expands to an expression whose type is real,
@@ -25730,29 +25730,29 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
asinh(iy) = i asin(y)
atanh(iy) = i atan(y)
-Annex H
+
(informative) Language independent arithmetic-
This annex documents the extent to which the C language supports the ISO/IEC 10967-1
standard for language-independent arithmetic (LIA-1). LIA-1 is more general than
IEC 60559 (annex F) in that it covers integer and diverse floating-point arithmetics.
-H.2 Types
+
The relevant C arithmetic types meet the requirements of LIA-1 types if an
implementation adds notification of exceptional arithmetic operations and meets the 1
unit in the last place (ULP) accuracy requirement (LIA-1 subclause 5.2.8).
-H.2.1 Boolean type
+
The LIA-1 data type Boolean is implemented by the C data type bool with values of
true and false, all from <stdbool.h>.
-H.2.2 Integer types
+
The signed C integer types int, long int, long long int, and the corresponding
unsigned types are compatible with LIA-1. If an implementation adds support for the
@@ -25772,7 +25772,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
is always 0 for the unsigned types, and is not provided for those types.
-H.2.2.1 Integer operations
+
The integer operations on integer types are the following:
addI x + y
@@ -25790,7 +25790,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
geqI x >= y
where x and y are expressions of the same integer type.
-H.2.3 Floating-point types
+
The C floating-point types float, double, and long double are compatible with
LIA-1. If an implementation adds support for the LIA-1 exceptional values
@@ -25799,7 +25799,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
operations (see annex F) along with IEC 60559 status flags and traps has LIA-1
conformant types.
-H.2.3.1 Floating-point parameters
+
The parameters for a floating point data type can be accessed by the following:
r FLT_RADIX
@@ -25814,7 +25814,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
epsilon FLT_EPSILON, DBL_EPSILON, LDBL_EPSILON
rnd_style FLT_ROUNDS
-H.2.3.2 Floating-point operations
+
The floating-point operations on floating-point types are the following:
addF x + y
@@ -25838,7 +25838,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
where x and y are expressions of the same floating point type, n is of type int, and li
is of type long int.
-H.2.3.3 Rounding styles
+
The C Standard requires all floating types to use the same radix and rounding style, so
that only one identifier for each is provided to map to LIA-1.
@@ -25851,7 +25851,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
provided that an implementation extends FLT_ROUNDS to cover the rounding style used
in all relevant LIA-1 operations, not just addition as in C.
-H.2.4 Type conversions
+
The LIA-1 type conversions are the following type casts:
cvtI' -> I (int)i, (long int)i, (long long int)i,
@@ -25888,14 +25888,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
implementation uses round-to-nearest.
-H.3 Notification
+
Notification is the process by which a user or program is informed that an exceptional
arithmetic operation has occurred. C's operations are compatible with LIA-1 in that C
allows an implementation to cause a notification to occur when any arithmetic operation
returns an exceptional value as defined in LIA-1 clause 5.
-H.3.1 Notification alternatives
+
LIA-1 requires at least the following two alternatives for handling of notifications:
setting indicators or trap-and-terminate. LIA-1 allows a third alternative: trap-and-
@@ -25915,7 +25915,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
math library function calls. User-provided signal handlers for SIGFPE allow for trap-
and-resume behavior with the same constraint.
-H.3.1.1 Indicators
+
C's <fenv.h> status flags are compatible with the LIA-1 indicators.
@@ -25940,7 +25940,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
This documentation makes that distinction because <fenv.h> covers only the floating-
point indicators.
-H.3.1.2 Traps
+
C is compatible with LIA-1's trap requirements for arithmetic operations, but not for
math library functions (which are not permitted to invoke a user's signal handler for
@@ -25958,7 +25958,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
it) or trap-and-resume, at the programmer's option.
-Annex I
+
(informative) @@ -26002,7 +26002,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
(informative) @@ -26010,7 +26010,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. This annex collects some information about portability that appears in this International Standard. -J.1 Unspecified behavior
+J.1 Unspecified behavior
The following are unspecified:
The behavior is undefined in the following circumstances:
A conforming implementation is required to document its choice of behavior in each of
the areas listed in this subclause. The following are implementation-defined:
-J.3.1 Translation
+
The following characteristics of a hosted environment are locale-specific and are required to be documented by the implementation: @@ -26931,7 +26931,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
The following extensions are widely used in many systems, but are not portable to all
implementations. The inclusion of any extension that may cause a strictly conforming
@@ -26939,42 +26939,42 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
extensions are new keywords, extra library functions declared in standard headers, or
predefined macros with names that do not begin with an underscore.
-J.5.1 Environment arguments
+
In a hosted environment, the main function receives a third argument, char *envp[],
that points to a null-terminated array of pointers to char, each of which points to a string
that provides information about the environment for this execution of the program
(5.1.2.2.1).
-J.5.2 Specialized identifiers
+
Characters other than the underscore _, letters, and digits, that are not part of the basic
source character set (such as the dollar sign $, or characters in national character sets)
may appear in an identifier (6.4.2).
-J.5.3 Lengths and cases of identifiers
+
All characters in identifiers (with or without external linkage) are significant (6.4.2).
-J.5.4 Scopes of identifiers
+
A function identifier, or the identifier of an object the declaration of which contains the
keyword extern, has file scope (6.2.1).
-J.5.5 Writable string literals
+
String literals are modifiable (in which case, identical string literals should denote distinct
objects) (6.4.5).
-J.5.6 Other arithmetic types
+
Additional arithmetic types, such as __int128 or double double, and their
appropriate conversions are defined (6.2.5, 6.3.1). Additional floating types may have
more range or precision than long double, may be used for evaluating expressions of
other floating types, and may be used to define float_t or double_t.
-J.5.7 Function pointer casts
+
A pointer to an object or to void may be cast to a pointer to a function, allowing data to
be invoked as a function (6.5.4).
@@ -26982,74 +26982,74 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
A pointer to a function may be cast to a pointer to an object or to void, allowing a
function to be inspected or modified (for example, by a debugger) (6.5.4).
-J.5.8 Extended bit-field types
+
A bit-field may be declared with a type other than _Bool, unsigned int, or
signed int, with an appropriate maximum width (6.7.2.1).
-J.5.9 The fortran keyword
+
The fortran function specifier may be used in a function declaration to indicate that
calls suitable for FORTRAN should be generated, or that a different representation for the
external name is to be generated (6.7.4).
-J.5.10 The asm keyword
+
The asm keyword may be used to insert assembly language directly into the translator output (6.8). The most common implementation is via a statement of the form:
asm ( character-string-literal );-
There may be more than one external definition for the identifier of an object, with or
without the explicit use of the keyword extern; if the definitions disagree, or more than
one is initialized, the behavior is undefined (6.9.2).
-J.5.12 Predefined macro names
+
Macro names that do not begin with an underscore, describing the translation and
execution environments, are defined by the implementation before translation begins
(6.10.8).
-J.5.13 Floating-point status flags
+
If any floating-point status flags are set on normal termination after all calls to functions
registered by the atexit function have been made (see 7.22.4.4), the implementation
writes some diagnostics indicating the fact to the stderr stream, if it is still open,
-J.5.14 Extra arguments for signal handlers
+
Handlers for specific signals are called with extra arguments in addition to the signal
number (7.14.1.1).
-J.5.15 Additional stream types and file-opening modes
+
Additional mappings from files to streams are supported (7.21.2).
Additional file-opening modes may be specified by characters appended to the mode
argument of the fopen function (7.21.5.3).
-J.5.16 Defined file position indicator
+
The file position indicator is decremented by each successful call to the ungetc or
ungetwc function for a text stream, except if its value was zero before a call (7.21.7.10,
7.28.3.10).
-J.5.17 Math error reporting
+
Functions declared in <complex.h> and <math.h> raise SIGFPE to report errors
instead of, or in addition to, setting errno or raising floating-point exceptions (7.3,
7.12).
-Annex K
+
(normative) Bounds-checking interfaces-
Traditionally, the C Library has contained many functions that trust the programmer to
provide output character arrays big enough to hold the result being produced. Not only
@@ -27083,7 +27083,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
change if the function is called again, perhaps by another thread.
-K.2 Scope
+
This annex specifies a series of optional extensions that can be useful in the mitigation of
security vulnerabilities in programs, and comprise new functions, macros, and types
@@ -27100,11 +27100,11 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
specifications.
-K.3 Library
+
The functions, macros, and types declared or defined in K.3 and its subclauses are not
declared or defined by their respective headers if __STDC_WANT_LIB_EXT1__ is
@@ -27140,7 +27140,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
implementation is not conforming.
-K.3.1.2 Reserved identifiers
+
Each macro name in any of the following subclauses is reserved for use as specified if it
is defined by any of its associated headers when included; unless explicitly stated
@@ -27154,12 +27154,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
as a macro name and as an identifier with file scope in the same name space if it is
defined by any of its associated headers when included.
-K.3.1.3 Use of errno
+
An implementation may set errno for the functions defined in this annex, but is not
required to.
-K.3.1.4 Runtime-constraint violations
+
Most functions in this annex include as part of their specification a list of runtime-
constraints. These runtime-constraints are requirements on the program using the
@@ -27193,7 +27193,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
from the definition of undefined behavior.
-K.3.2 Errors
+
The header <errno.h> defines a type.
@@ -27208,7 +27208,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
errno might be declared as having the return type errno_t.
-K.3.3 Common definitions
+
The header <stddef.h> defines a type.
@@ -27221,7 +27221,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
372) See the description of the RSIZE_MAX macro in <stdint.h>.
-K.3.4 Integer types
+
The header <stdint.h> defines a macro.
@@ -27231,7 +27231,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. which expands to a value373) of type size_t. Functions that have parameters of type rsize_t consider it a runtime-constraint violation if the values of those parameters are greater than RSIZE_MAX. - Recommended practice +
Extremely large object sizes are frequently a sign that an object's size was calculated incorrectly. For example, negative numbers appear as very large positive numbers when @@ -27252,7 +27252,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
373) The macro RSIZE_MAX need not expand to a constant expression.
-K.3.5 Input/output
+
The header <stdio.h> defines several macros and two types.
@@ -27275,9 +27275,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
rsize_t
which is the type size_t.
-K.3.5.1 Operations on files
+
@@ -27302,7 +27302,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If the file was created successfully, then the pointer to FILE pointed to by streamptr will be set to the pointer to the object controlling the opened file. Otherwise, the pointer to FILE pointed to by streamptr will be set to a null pointer. - Recommended practice +Recommended practice
It should be possible to open at least TMP_MAX_S temporary files during the lifetime of the program (this limit may be shared with tmpnam_s) and there should be no limit on the number simultaneously open other than this limit and any limit on the number of open @@ -27312,7 +27312,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The tmpfile_s function returns zero if it created the file. If it did not create the file or there was a runtime-constraint violation, tmpfile_s returns a nonzero value. -K.3.5.1.2 The tmpnam_s function
+K.3.5.1.2 The tmpnam_s function
Synopsis
@@ -27342,7 +27342,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.The implementation shall behave as if no library function except tmpnam calls the tmpnam_s function.375) - Recommended practice +
Recommended practice
After a program obtains a file name using the tmpnam_s function and before the program creates a file with that name, the possibility exists that someone else may create @@ -27358,7 +27358,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
Otherwise, the tmpnam_s function writes the string in the array pointed to by s and returns zero. - Environmental limits +
Environmental limits
The value of the macro TMP_MAX_S shall be at least 25. @@ -27375,9 +27375,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. convention for temporary files), but this is not required. -
K.3.5.2 File access functions
+K.3.5.2 File access functions
-K.3.5.2.1 The fopen_s function
+K.3.5.2.1 The fopen_s function
Synopsis
@@ -27460,7 +27460,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.376) These are the same permissions that the file would have been created with by fopen. -
K.3.5.2.2 The freopen_s function
+K.3.5.2.2 The freopen_s function
Synopsis
@@ -27502,13 +27502,13 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. there was a runtime-constraint violation, freopen_s returns a nonzero value. -K.3.5.3 Formatted input/output functions
+K.3.5.3 Formatted input/output functions
Unless explicitly stated otherwise, if the execution of a function described in this subclause causes copying to take place between objects that overlap, the objects take on unspecified values. -
K.3.5.3.1 The fprintf_s function
+K.3.5.3.1 The fprintf_s function
Synopsis
@@ -27550,7 +27550,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. constraint violation. -K.3.5.3.2 The fscanf_s function
+K.3.5.3.2 The fscanf_s function
Synopsis
@@ -27632,7 +27632,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. compatible with rsize_t. -K.3.5.3.3 The printf_s function
+K.3.5.3.3 The printf_s function
Synopsis
@@ -27666,7 +27666,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.4 The scanf_s function
+K.3.5.3.4 The scanf_s function
Synopsis
@@ -27692,7 +27692,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. scanf_s function returns the number of input items assigned, which can be fewer than provided for, or even zero, in the event of an early matching failure. -K.3.5.3.5 The snprintf_s function
+K.3.5.3.5 The snprintf_s function
Synopsis
@@ -27733,7 +27733,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.6 The sprintf_s function
+K.3.5.3.6 The sprintf_s function
Synopsis
@@ -27777,7 +27777,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.7 The sscanf_s function
+K.3.5.3.7 The sscanf_s function
Synopsis
@@ -27807,7 +27807,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. provided for, or even zero, in the event of an early matching failure. -K.3.5.3.8 The vfprintf_s function
+K.3.5.3.8 The vfprintf_s function
Synopsis
@@ -27842,7 +27842,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.9 The vfscanf_s function
+K.3.5.3.9 The vfscanf_s function
Synopsis
@@ -27884,7 +27884,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. indeterminate. -K.3.5.3.10 The vprintf_s function
+K.3.5.3.10 The vprintf_s function
Synopsis
@@ -27919,7 +27919,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.11 The vscanf_s function
+K.3.5.3.11 The vscanf_s function
Synopsis
@@ -27960,7 +27960,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. indeterminate. -K.3.5.3.12 The vsnprintf_s function
+K.3.5.3.12 The vsnprintf_s function
Synopsis
@@ -28007,7 +28007,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.13 The vsprintf_s function
+K.3.5.3.13 The vsprintf_s function
Synopsis
@@ -28054,7 +28054,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. format string was %%n. -K.3.5.3.14 The vsscanf_s function
+K.3.5.3.14 The vsscanf_s function
Synopsis
@@ -28091,9 +28091,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. indeterminate. -K.3.5.4 Character input/output functions
+K.3.5.4 Character input/output functions
-K.3.5.4.1 The gets_s function
+K.3.5.4.1 The gets_s function
Synopsis
@@ -28125,7 +28125,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. If end-of-file is encountered and no characters have been read into the array, or if a read error occurs during the operation, then s[0] is set to the null character, and the other elements of s take unspecified values. - Recommended practice +-Recommended practice
The fgets function allows properly-written programs to safely process input lines too long to store in the result array. In general this requires that callers of fgets pay @@ -28150,7 +28150,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. expect such a relationship. -
K.3.6 General utilities
+K.3.6 General utilities
The header <stdlib.h> defines three types.
@@ -28170,9 +28170,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. void * restrict ptr, errno_t error);
K.3.6.1 Runtime-constraint handling
+K.3.6.1 Runtime-constraint handling
-K.3.6.1.1 The set_constraint_handler_s function
+K.3.6.1.1 The set_constraint_handler_s function
Synopsis
@@ -28214,7 +28214,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. pointer argument, a pointer to the implementation default handler is returned (not NULL). -K.3.6.1.2 The abort_handler_s function
+K.3.6.1.2 The abort_handler_s function
Synopsis
@@ -28245,7 +28245,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.393) Many implementations invoke a debugger when the abort function is called. -
K.3.6.1.3 The ignore_handler_s function
+K.3.6.1.3 The ignore_handler_s function
Synopsis
@@ -28272,9 +28272,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. library function returns a nonzero errno_t). -K.3.6.2 Communication with the environment
+K.3.6.2 Communication with the environment
-K.3.6.2.1 The getenv_s function
+K.3.6.2.1 The getenv_s function
Synopsis
@@ -28314,7 +28314,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The getenv_s function returns zero if the specified name is found and the associated string was successfully stored in value. Otherwise, a nonzero value is returned. --K.3.6.3 Searching and sorting utilities
+K.3.6.3 Searching and sorting utilities
These utilities make use of a comparison function to search or sort arrays of unspecified type. Where an argument declared as size_t nmemb specifies the length of the array @@ -28355,7 +28355,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. (char *)p < (char *)base + nmemb * size
K.3.6.3.1 The bsearch_s function
+K.3.6.3.1 The bsearch_s function
Synopsis
@@ -28406,7 +28406,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, it might specify a collating sequence used by the comparison function. -K.3.6.3.2 The qsort_s function
+K.3.6.3.2 The qsort_s function
Synopsis
@@ -28452,7 +28452,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, it might specify a collating sequence used by the comparison function. -K.3.6.4 Multibyte/wide character conversion functions
+K.3.6.4 Multibyte/wide character conversion functions
The behavior of the multibyte character functions is affected by the LC_CTYPE category of the current locale. For a state-dependent encoding, each function is placed into its @@ -28468,7 +28468,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. character codes, but are grouped with an adjacent multibyte character. -
K.3.6.4.1 The wctomb_s function
+K.3.6.4.1 The wctomb_s function
Synopsis
@@ -28519,12 +28519,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wctomb_s function returns zero if successful, and a nonzero value if there was a runtime-constraint violation or wc did not correspond to a valid multibyte character. -K.3.6.5 Multibyte/wide string conversion functions
+K.3.6.5 Multibyte/wide string conversion functions
The behavior of the multibyte string functions is affected by the LC_CTYPE category of the current locale. -
K.3.6.5.1 The mbstowcs_s function
+K.3.6.5.1 The mbstowcs_s function
Synopsis
@@ -28582,7 +28582,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. terminating null character did not occur where required. -K.3.6.5.2 The wcstombs_s function
+K.3.6.5.2 The wcstombs_s function
Synopsis
@@ -28659,7 +28659,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. runtime-constraint violation. -which is the type size_t. -K.3.7 String handling
+K.3.7 String handling
The header <string.h> defines two types.
@@ -28671,9 +28671,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. rsize_t
K.3.7.1 Copying functions
+K.3.7.1 Copying functions
-K.3.7.1.1 The memcpy_s function
+K.3.7.1.1 The memcpy_s function
Synopsis
@@ -28700,7 +28700,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Otherwise, a nonzero value is returned. -K.3.7.1.2 The memmove_s function
+K.3.7.1.2 The memmove_s function
Synopsis
@@ -28728,7 +28728,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The memmove_s function returns zero if there was no runtime-constraint violation. Otherwise, a nonzero value is returned. -K.3.7.1.3 The strcpy_s function
+K.3.7.1.3 The strcpy_s function
Synopsis
@@ -28769,7 +28769,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. within the array pointed to by s1 and that the result in s1 is null terminated. -K.3.7.1.4 The strncpy_s function
+K.3.7.1.4 The strncpy_s function
Synopsis
@@ -28834,9 +28834,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. within the array pointed to by s1 and that the result in s1 is null terminated. -K.3.7.2 Concatenation functions
+K.3.7.2 Concatenation functions
-K.3.7.2.1 The strcat_s function
+K.3.7.2.1 The strcat_s function
Synopsis
@@ -28887,7 +28887,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. appended to the string pointed to by s1 and that the result in s1 is null terminated. -K.3.7.2.2 The strncat_s function
+K.3.7.2.2 The strncat_s function
Synopsis
@@ -28966,9 +28966,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. appended to the string pointed to by s1 and that the result in s1 is null terminated. -K.3.7.3 Search functions
+K.3.7.3 Search functions
-K.3.7.3.1 The strtok_s function
+K.3.7.3.1 The strtok_s function
Synopsis
@@ -29042,9 +29042,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. t = strtok_s(NULL, &max1, "?", &ptr1); // t is a null pointer-K.3.7.4 Miscellaneous functions
+K.3.7.4 Miscellaneous functions
-K.3.7.4.1 The memset_s function
+K.3.7.4.1 The memset_s function
Synopsis
@@ -29073,7 +29073,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The memset_s function returns zero if there was no runtime-constraint violation. Otherwise, a nonzero value is returned. -K.3.7.4.2 The strerror_s function
+K.3.7.4.2 The strerror_s function
Synopsis
@@ -29108,7 +29108,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. function returns a nonzero value. -K.3.7.4.3 The strerrorlen_s function
+K.3.7.4.3 The strerrorlen_s function
Synopsis
@@ -29124,7 +29124,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The strerrorlen_s function returns the number of characters (not including the null character) in the full message string. -K.3.7.4.4 The strnlen_s function
+K.3.7.4.4 The strnlen_s function
Synopsis
@@ -29154,7 +29154,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. strnlen_s useful in algorithms that gracefully handle such exceptional data. -which is the type size_t. -K.3.8 Date and time
+K.3.8 Date and time
The header <time.h> defines two types.
@@ -29166,7 +29166,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. rsize_t
K.3.8.1 Components of time
+K.3.8.1 Components of time
A broken-down time is normalized if the values of the members of the tm structure are in their normal rages.415) @@ -29175,12 +29175,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
415) The normal ranges are defined in 7.26.1. -
K.3.8.2 Time conversion functions
+K.3.8.2 Time conversion functions
Like the strftime function, the asctime_s and ctime_s functions do not return a pointer to a static object, and other library functions are permitted to call them. -
K.3.8.2.1 The asctime_s function
+K.3.8.2.1 The asctime_s function
Synopsis
@@ -29235,7 +29235,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
@@ -29266,7 +29266,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. the form of a string. It is equivalent toasctime_s(s, maxsize, localtime_s(timer))- Recommended practice +Recommended practice
The strftime function allows more flexible formatting and supports locale-specific behavior. If you do not require the exact form of the result string produced by the ctime_s function, consider using the strftime function instead. @@ -29275,7 +29275,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The ctime_s function returns zero if the time was successfully converted and stored into the array pointed to by s. Otherwise, it returns a nonzero value. -K.3.8.2.3 The gmtime_s function
+K.3.8.2.3 The gmtime_s function
Synopsis
@@ -29299,7 +29299,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The gmtime_s function returns result, or a null pointer if the specified time cannot be converted to UTC or there is a runtime-constraint violation. -K.3.8.2.4 The localtime_s function
+K.3.8.2.4 The localtime_s function
Synopsis
@@ -29322,7 +29322,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The localtime_s function returns result, or a null pointer if the specified time cannot be converted to local time or there is a runtime-constraint violation. -K.3.9 Extended multibyte and wide character utilities
+K.3.9 Extended multibyte and wide character utilities
The header <wchar.h> defines two types.
@@ -29339,9 +29339,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. unspecified values. -
K.3.9.1 Formatted wide character input/output functions
+K.3.9.1 Formatted wide character input/output functions
-K.3.9.1.1 The fwprintf_s function
+K.3.9.1.1 The fwprintf_s function
Synopsis
@@ -29374,7 +29374,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.2 The fwscanf_s function
+K.3.9.1.2 The fwscanf_s function
Synopsis
@@ -29426,7 +29426,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. compatible with rsize_t. -K.3.9.1.3 The snwprintf_s function
+K.3.9.1.3 The snwprintf_s function
Synopsis
@@ -29469,7 +29469,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.4 The swprintf_s function
+K.3.9.1.4 The swprintf_s function
Synopsis
@@ -29513,7 +29513,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.5 The swscanf_s function
+K.3.9.1.5 The swscanf_s function
Synopsis
@@ -29543,7 +29543,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. than provided for, or even zero, in the event of an early matching failure. -K.3.9.1.6 The vfwprintf_s function
+K.3.9.1.6 The vfwprintf_s function
Synopsis
@@ -29579,7 +29579,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.7 The vfwscanf_s function
+K.3.9.1.7 The vfwscanf_s function
Synopsis
@@ -29619,7 +29619,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value of arg after the return is indeterminate. -K.3.9.1.8 The vsnwprintf_s function
+K.3.9.1.8 The vsnwprintf_s function
Synopsis
@@ -29664,7 +29664,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.9 The vswprintf_s function
+K.3.9.1.9 The vswprintf_s function
Synopsis
@@ -29710,7 +29710,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.10 The vswscanf_s function
+K.3.9.1.10 The vswscanf_s function
Synopsis
@@ -29751,7 +29751,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value of arg after the return is indeterminate. -K.3.9.1.11 The vwprintf_s function
+K.3.9.1.11 The vwprintf_s function
Synopsis
@@ -29789,7 +29789,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.12 The vwscanf_s function
+K.3.9.1.12 The vwscanf_s function
Synopsis
@@ -29824,7 +29824,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. value of arg after the return is indeterminate. -K.3.9.1.13 The wprintf_s function
+K.3.9.1.13 The wprintf_s function
Synopsis
@@ -29857,7 +29857,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. example, if the entire format string was L"%%n". -K.3.9.1.14 The wscanf_s function
+K.3.9.1.14 The wscanf_s function
Synopsis
@@ -29884,11 +29884,11 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. provided for, or even zero, in the event of an early matching failure. -K.3.9.2 General wide string utilities
+K.3.9.2 General wide string utilities
-K.3.9.2.1 Wide string copying functions
+K.3.9.2.1 Wide string copying functions
-K.3.9.2.1.1 The wcscpy_s function
+K.3.9.2.1.1 The wcscpy_s function
Synopsis
@@ -29933,7 +29933,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. fit within the array pointed to by s1 and that the result in s1 is null terminated. -K.3.9.2.1.2 The wcsncpy_s function
+K.3.9.2.1.2 The wcsncpy_s function
Synopsis
@@ -30001,7 +30001,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. fit within the array pointed to by s1 and that the result in s1 is null terminated. -K.3.9.2.1.3 The wmemcpy_s function
+K.3.9.2.1.3 The wmemcpy_s function
Synopsis
@@ -30030,7 +30030,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. Otherwise, a nonzero value is returned. -K.3.9.2.1.4 The wmemmove_s function
+K.3.9.2.1.4 The wmemmove_s function
Synopsis
@@ -30058,9 +30058,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wmemmove_s function returns zero if there was no runtime-constraint violation. Otherwise, a nonzero value is returned. -K.3.9.2.2 Wide string concatenation functions
+K.3.9.2.2 Wide string concatenation functions
-K.3.9.2.2.1 The wcscat_s function
+K.3.9.2.2.1 The wcscat_s function
Synopsis
@@ -30107,7 +30107,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. s2 were appended to the wide string pointed to by s1 and that the result in s1 is null terminated. -K.3.9.2.2.2 The wcsncat_s function
+K.3.9.2.2.2 The wcsncat_s function
Synopsis
@@ -30187,9 +30187,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. s2 were appended to the wide string pointed to by s1 and that the result in s1 is null terminated. -K.3.9.2.3 Wide string search functions
+K.3.9.2.3 Wide string search functions
-K.3.9.2.3.1 The wcstok_s function
+K.3.9.2.3.1 The wcstok_s function
Synopsis
@@ -30264,9 +30264,9 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. t = wcstok_s(NULL, &max1, "?", &ptr1); // t is a null pointer-K.3.9.2.4 Miscellaneous functions
+K.3.9.2.4 Miscellaneous functions
-K.3.9.2.4.1 The wcsnlen_s function
+K.3.9.2.4.1 The wcsnlen_s function
Synopsis
@@ -30292,14 +30292,14 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. wcsnlen_s useful in algorithms that gracefully handle such exceptional data. -K.3.9.3 Extended multibyte/wide character conversion utilities
+K.3.9.3 Extended multibyte/wide character conversion utilities
-K.3.9.3.1 Restartable multibyte/wide character conversion functions
+K.3.9.3.1 Restartable multibyte/wide character conversion functions
Unlike wcrtomb, wcrtomb_s does not permit the ps parameter (the pointer to the conversion state) to be a null pointer. -
K.3.9.3.1.1 The wcrtomb_s function
+K.3.9.3.1.1 The wcrtomb_s function
Synopsis
@@ -30346,12 +30346,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. The wcrtomb_s function returns zero if no runtime-constraint violation and no encoding error occurred. Otherwise, a nonzero value is returned. -K.3.9.3.2 Restartable multibyte/wide string conversion functions
+K.3.9.3.2 Restartable multibyte/wide string conversion functions
Unlike mbsrtowcs and wcsrtombs, mbsrtowcs_s and wcsrtombs_s do not permit the ps parameter (the pointer to the conversion state) to be a null pointer. -
K.3.9.3.2.1 The mbsrtowcs_s function
+K.3.9.3.2.1 The mbsrtowcs_s function
Synopsis
@@ -30419,7 +30419,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. terminating null character did not occur where required. -K.3.9.3.2.2 The wcsrtombs_s function
+K.3.9.3.2.2 The wcsrtombs_s function
Synopsis
@@ -30509,12 +30509,12 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. runtime-constraint violation. -Annex L
+Annex L
(normative) Analyzability-L.1 Scope
+L.1 Scope
This annex specifies optional behavior that can aid in the analyzability of C programs.
@@ -30526,16 +30526,16 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. specifications. -
L.2 Definitions
+L.2 Definitions
-L.2.1
+L.2.1
out-of-bounds store an (attempted) access (3.1) that, at run time, for a given computational state, would modify (or, for an object declared volatile, fetch) one or more bytes that lie outside the bounds permitted by this Standard. -
L.2.2
+L.2.2
bounded undefined behavior undefined behavior (3.4.3) that does not perform an out-of-bounds store. @@ -30546,7 +30546,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. NOTE 2 Any values produced or stored might be indeterminate values. -
L.2.3
+L.2.3
critical undefined behavior undefined behavior that is not bounded undefined behavior. @@ -30558,7 +30558,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''. -
L.3 Requirements
+L.3 Requirements
If the program performs a trap (3.19.5), the implementation is permitted to invoke a runtime-constraint handler. Any such semantics are implementation-defined. @@ -30583,7 +30583,7 @@ margin: deleted text is marked with ''*'', new or changed text with '' ''.
[^ x ^], 3.20 , (comma operator), 5.1.2.4, 6.5.17 , (comma punctuator), 6.5.2, 6.7, 6.7.2.1, 6.7.2.2,