X-Git-Url: http://nsz.repo.hu/git/?p=c-standard;a=blobdiff_plain;f=n1256.html;h=42134cacb74112ed814baa68426f7756a1940fd0;hp=8a01d3335d5b749b85d65c222471b8003493b1fe;hb=6c55e01324160ad9e3d4453aead2dabbc85c90f2;hpb=9a0e8db52bafd217550cd4c63eb973bfe61f923a;ds=sidebyside diff --git a/n1256.html b/n1256.html index 8a01d33..42134ca 100644 --- a/n1256.html +++ b/n1256.html @@ -811,18 +811,18 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

3.18

- ??? x???
+ [^ x ^]
ceiling of x: the least integer greater than or equal to x

- EXAMPLE ???2.4??? is 3, ???-2.4??? is -2. + EXAMPLE [^2.4^] is 3, [^-2.4^] is -2.

3.19

- ??? x???
+ [_ x _]
floor of x: the greatest integer less than or equal to x

- EXAMPLE ???2.4??? is 2, ???-2.4??? is -3. + EXAMPLE [_2.4_] is 2, [_-2.4_] is -3.

4. Conformance

@@ -1508,51 +1508,51 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 (absolute value) to those shown, with the same sign.

If the value of an object of type char is treated as a signed integer when used in an expression, the value of CHAR_MIN shall be the same as that of SCHAR_MIN and the value of CHAR_MAX shall be the same as that of SCHAR_MAX. Otherwise, the value of CHAR_MIN shall be 0 and the value of CHAR_MAX shall be the same as that of - UCHAR_MAX.15) The value UCHAR_MAX shall equal 2CHAR_BIT - 1. + UCHAR_MAX.15) The value UCHAR_MAX shall equal 2CHAR_BIT - 1.

Forward references: representations of types (6.2.6), conditional inclusion (6.10.1).

footnotes
@@ -1571,19 +1571,18 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 b base or radix of exponent representation (an integer > 1) e exponent (an integer between a minimum emin and a maximum emax ) p precision (the number of base-b digits in the significand) - fk nonnegative integers less than b (the significand digits) + fk nonnegative integers less than b (the significand digits) A floating-point number (x) is defined by the following model:
                     p
-        x = sb e   (Sum) f k b-k ,
-                   k=1
-                                  emin <= e <= emax
+ x = s be (Sum) fk b-k , emin <= e <= emax + k=1

- In addition to normalized floating-point numbers ( f 1 > 0 if x != 0), floating types may be + In addition to normalized floating-point numbers ( f1 > 0 if x != 0), floating types may be able to contain other kinds of floating-point numbers, such as subnormal floating-point - numbers (x != 0, e = emin , f 1 = 0) and unnormalized floating-point numbers (x != 0, - e > emin , f 1 = 0), and values that are not floating-point numbers, such as infinities and + numbers (x != 0, e = emin , f1 = 0) and unnormalized floating-point numbers (x != 0, + e > emin , f1 = 0), and values that are not floating-point numbers, such as infinities and NaNs. A NaN is an encoding signifying Not-a-Number. A quiet NaN propagates through almost every arithmetic operation without raising a floating-point exception; a signaling NaN generally raises a floating-point exception when occurring as an @@ -1607,8 +1606,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 All integer values in the <float.h> header, except FLT_ROUNDS, shall be constant expressions suitable for use in #if preprocessing directives; all floating values shall be constant expressions. All except DECIMAL_DIG, FLT_EVAL_METHOD, FLT_RADIX, - and FLT_ROUNDS have separate names for all three floating-point types. The floating- - point model representation is provided for all values except FLT_EVAL_METHOD and + and FLT_ROUNDS have separate names for all three floating-point types. The floating-point + model representation is provided for all values except FLT_EVAL_METHOD and FLT_ROUNDS.

The rounding mode for floating-point addition is characterized by the implementation- @@ -1649,19 +1648,19 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 those shown, with the same sign:

The values given in the following list shall be replaced by constant expressions with implementation-defined values that are greater than or equal to those shown:

The values given in the following list shall be replaced by constant expressions with implementation-defined (positive) values that are less than or equal to those shown:

- Recommended practice +
Recommended practice

Conversion from (at least) double to decimal with DECIMAL_DIG digits and back should be the identity function. @@ -1734,9 +1731,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 float:

                     6
-       x = s16e    (Sum) f k 16-k ,
-                   k=1
-                                   -31 <= e <= +32
+ x = s 16e (Sum) fk 16-k , -31 <= e <= +32 + k=1
          FLT_RADIX                                  16
@@ -1756,15 +1752,14 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
  <float.h> header for types float and double:
 
                    24
-       x f = s2e   (Sum) f k 2-k ,
-                   k=1
-                                  -125 <= e <= +128
+ xf = s 2e (Sum) fk 2-k , -125 <= e <= +128 + k=1
                    53
-       x d = s2e   (Sum) f k 2-k ,
-                   k=1
-                                  -1021 <= e <= +1024
+ xd = s 2e (Sum) fk 2-k , -1021 <= e <= +1024 + k=1 +
          FLT_RADIX                                   2
@@ -1837,7 +1832,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
  definitions are listed on separate lines, except when prefaced by the words ''one of''. An
  optional symbol is indicated by the subscript ''opt'', so that
 
-          { expressionopt }
+ { expressionopt }
indicates an optional expression enclosed in braces.

When syntactic categories are referred to in the main text, they are not italicized and @@ -2297,11 +2292,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 represented by successive bits are additive, begin with 1, and are multiplied by successive integral powers of 2, except perhaps the bit with the highest position. (Adapted from the American National Dictionary for Information Processing Systems.) A byte contains CHAR_BIT bits, and the values of - type unsigned char range from 0 to 2 - -

-                                           CHAR_BIT
-                                                     - 1.
+ type unsigned char range from 0 to 2CHAR_BIT- 1.

41) Thus, an automatic variable can be initialized to a trap representation without causing undefined behavior, but the value of the variable cannot be used until a proper value is stored in it. @@ -2320,8 +2311,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 not be any of the latter). If there are N value bits, each bit shall represent a different - power of 2 between 1 and 2 N -1 , so that objects of that type shall be capable of - representing values from 0 to 2 N - 1 using a pure binary representation; this shall be + power of 2 between 1 and 2N-1 , so that objects of that type shall be capable of + representing values from 0 to 2N - 1 using a pure binary representation; this shall be known as the value representation. The values of any padding bits are unspecified.44)

For signed integer types, the bits of the object representation shall be divided into three @@ -2335,8 +2326,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 modified in one of the following ways:

Which of these applies is implementation-defined, as is whether the value with sign bit 1 and all value bits zero (for the first two), or with sign bit and all value bits 1 (for ones' @@ -2588,32 +2579,35 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 and complex otherwise. This pattern is called the usual arithmetic conversions:

-

-       First, if the corresponding real type of either operand is long double, the other
+
+
  • Otherwise, both operands are converted to the unsigned integer type + corresponding to the type of the operand with signed integer type. + + The values of floating operands and of the results of floating expressions may be represented in greater precision and range than that required by the type; the types are not changed thereby.52) @@ -2888,7 +2882,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 - 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 @@ -3006,9 +3000,9 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               integer-constant:
    -                  decimal-constant integer-suffixopt
    -                  octal-constant integer-suffixopt
    -                  hexadecimal-constant integer-suffixopt
    +                  decimal-constant integer-suffixopt
    +                  octal-constant integer-suffixopt
    +                  hexadecimal-constant integer-suffixopt
               decimal-constant:
                     nonzero-digit
                     decimal-constant digit
    @@ -3029,10 +3023,10 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                   a b c           d e      f
                   A B C           D E      F
             integer-suffix:
    -                unsigned-suffix long-suffixopt
    +                unsigned-suffix long-suffixopt
                     unsigned-suffix long-long-suffix
    -                long-suffix unsigned-suffixopt
    -                long-long-suffix unsigned-suffixopt
    +                long-suffix unsigned-suffixopt
    +                long-long-suffix unsigned-suffixopt
             unsigned-suffix: one of
                    u U
             long-suffix: one of
    @@ -3057,38 +3051,45 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      The type of an integer constant is the first of the corresponding list in which its value can
      be represented.
     
    -
    -                                                                  Octal or Hexadecimal
    - Suffix Decimal Constant Constant - - none int int -
    -                     long int                               unsigned int
    -                     long long int                          long int
    -                                                            unsigned long int
    -                                                            long long int
    -                                                            unsigned long long int
    - - u or U unsigned int unsigned int -
    -                     unsigned long int                      unsigned long int
    -                     unsigned long long int                 unsigned long long int
    - - l or L long int long int -
    -                     long long int                          unsigned long int
    -                                                            long long int
    -                                                            unsigned long long int
    - - Both u or U unsigned long int unsigned long int - and l or L unsigned long long int unsigned long long int - - ll or LL long long int long long int -
    -                                                            unsigned long long int
    - - Both u or U unsigned long long int unsigned long long int - and ll or LL + +
    Suffix Decimal Constant Octal or Hexadecimal Constant +
    none +
    int
    +long int
    +long long int
    +
    int
    +unsigned int
    +long int
    +unsigned long int
    +long long int
    +unsigned long long int
    +
    u or U +
    unsigned int
    +unsigned long int
    +unsigned long long int
    +
    unsigned int
    +unsigned long int
    +unsigned long long int
    +
    l or L +
    long int
    +long long int
    +
    long int
    +unsigned long int
    +long long int
    +unsigned long long int
    +
    Both u or U and l or L +
    unsigned long int
    +unsigned long long int
    +
    unsigned long int
    +unsigned long long int
    +
    ll or LL +
    long long int
    +
    long long int
    +unsigned long long int
    +
    Both u or U and ll or LL +
    unsigned long long int
    +
    unsigned long long int
    +

    If an integer constant cannot be represented by any type in its list, it may have an extended integer type, if the extended integer type can represent its value. If all of the @@ -3108,31 +3109,31 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 decimal-floating-constant hexadecimal-floating-constant decimal-floating-constant: - fractional-constant exponent-partopt floating-suffixopt - digit-sequence exponent-part floating-suffixopt + fractional-constant exponent-partopt floating-suffixopt + digit-sequence exponent-part floating-suffixopt hexadecimal-floating-constant: hexadecimal-prefix hexadecimal-fractional-constant - binary-exponent-part floating-suffixopt + binary-exponent-part floating-suffixopt hexadecimal-prefix hexadecimal-digit-sequence - binary-exponent-part floating-suffixopt + binary-exponent-part floating-suffixopt fractional-constant: - digit-sequenceopt . digit-sequence + digit-sequenceopt . digit-sequence digit-sequence . exponent-part: - e signopt digit-sequence - E signopt digit-sequence + e signopt digit-sequence + E signopt digit-sequence sign: one of + - digit-sequence: digit digit-sequence digit hexadecimal-fractional-constant: - hexadecimal-digit-sequenceopt . + hexadecimal-digit-sequenceopt . hexadecimal-digit-sequence hexadecimal-digit-sequence . binary-exponent-part: - p signopt digit-sequence - P signopt digit-sequence + p signopt digit-sequence + P signopt digit-sequence hexadecimal-digit-sequence: hexadecimal-digit hexadecimal-digit-sequence hexadecimal-digit @@ -3166,7 +3167,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 Floating constants are converted to internal format as if at translation-time. The conversion of a floating constant shall not raise an exceptional condition or a floating- point exception at execution time. - 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 @@ -3335,8 +3336,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               string-literal:
    -                  " s-char-sequenceopt "
    -                  L" s-char-sequenceopt "
    +                  " s-char-sequenceopt "
    +                  L" s-char-sequenceopt "
               s-char-sequence:
                      s-char
                      s-char-sequence s-char
    @@ -3624,8 +3625,9 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     
     
                 i = ++i + 1;
    -            a[i++] = i;
    +            a[i++] = i;
    while allowing +
                 i = i + 1;
                 a[i] = i;
    @@ -3638,9 +3640,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 parentheses () (6.5.1), subscripting brackets [] (6.5.2.1), function-call parentheses () (6.5.2.2), and the conditional operator ?: (6.5.15). -
    -    Within each major subclause, the operators have the same precedence. Left- or right-associativity is
    -    indicated in each subclause by the syntax for the expressions discussed therein.
    + Within each major subclause, the operators have the same precedence. Left- or right-associativity is + indicated in each subclause by the syntax for the expressions discussed therein.

    75) Allocated objects have no declared type. @@ -3691,7 +3692,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 postfix-expression: primary-expression postfix-expression [ expression ] - postfix-expression ( argument-expression-listopt ) + postfix-expression ( argument-expression-listopt ) postfix-expression . identifier postfix-expression -> identifier postfix-expression ++ @@ -4986,12 +4987,12 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               declaration:
    -                 declaration-specifiers init-declarator-listopt ;
    +                 declaration-specifiers init-declarator-listopt ;
               declaration-specifiers:
    -                 storage-class-specifier declaration-specifiersopt
    -                 type-specifier declaration-specifiersopt
    -                 type-qualifier declaration-specifiersopt
    -                 function-specifier declaration-specifiersopt
    +                 storage-class-specifier declaration-specifiersopt
    +                 type-specifier declaration-specifiersopt
    +                 type-qualifier declaration-specifiersopt
    +                 function-specifier declaration-specifiersopt
               init-declarator-list:
                       init-declarator
                       init-declarator-list , init-declarator
    @@ -5168,7 +5169,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     

               struct-or-union-specifier:
    -                  struct-or-union identifieropt { struct-declaration-list }
    +                  struct-or-union identifieropt { struct-declaration-list }
                       struct-or-union identifier
               struct-or-union:
                       struct
    @@ -5179,14 +5180,14 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
               struct-declaration:
                       specifier-qualifier-list struct-declarator-list ;
               specifier-qualifier-list:
    -                 type-specifier specifier-qualifier-listopt
    -                 type-qualifier specifier-qualifier-listopt
    +                 type-specifier specifier-qualifier-listopt
    +                 type-qualifier specifier-qualifier-listopt
               struct-declarator-list:
                       struct-declarator
                       struct-declarator-list , struct-declarator
               struct-declarator:
                       declarator
    -                  declaratoropt : constant-expression
    + declaratoropt : constant-expression
    Constraints

    A structure or union shall not contain a member with incomplete or function type (hence, @@ -5365,8 +5366,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               enum-specifier:
    -                enum identifieropt { enumerator-list }
    -                enum identifieropt { enumerator-list , }
    +                enum identifieropt { enumerator-list }
    +                enum identifieropt { enumerator-list , }
                     enum identifier
               enumerator-list:
                     enumerator
    @@ -5445,7 +5446,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     

    A type specifier of the form

    -         struct-or-union identifieropt { struct-declaration-list }
    + struct-or-union identifieropt { struct-declaration-list }
    or
              enum identifier { enumerator-list }
    @@ -5846,19 +5847,19 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               declarator:
    -                 pointeropt direct-declarator
    +                 pointeropt direct-declarator
               direct-declarator:
                       identifier
                       ( declarator )
    -                  direct-declarator [ type-qualifier-listopt assignment-expressionopt ]
    -                  direct-declarator [ static type-qualifier-listopt assignment-expression ]
    +                  direct-declarator [ type-qualifier-listopt assignment-expressionopt ]
    +                  direct-declarator [ static type-qualifier-listopt assignment-expression ]
                       direct-declarator [ type-qualifier-list static assignment-expression ]
    -                  direct-declarator [ type-qualifier-listopt * ]
    +                  direct-declarator [ type-qualifier-listopt * ]
                       direct-declarator ( parameter-type-list )
    -                  direct-declarator ( identifier-listopt )
    +                  direct-declarator ( identifier-listopt )
               pointer:
    -                 * type-qualifier-listopt
    -                 * type-qualifier-listopt pointer
    +                 * type-qualifier-listopt
    +                 * type-qualifier-listopt pointer
               type-qualifier-list:
                      type-qualifier
                      type-qualifier-list type-qualifier
    @@ -5870,7 +5871,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                     parameter-list , parameter-declaration
               parameter-declaration:
                     declaration-specifiers declarator
    -                declaration-specifiers abstract-declaratoropt
    +                declaration-specifiers abstract-declaratoropt
               identifier-list:
                       identifier
                       identifier-list , identifier
    @@ -5905,7 +5906,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 incomplete type, either @@ -5917,7 +5918,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    If, in the declaration ''T D1'', D1 has the form

    -         * type-qualifier-listopt D
    + * type-qualifier-listopt D
    and the type specified for ident in the declaration ''T D'' is ''derived-declarator-type-list T '', then the type specified for ident is ''derived-declarator-type-list type-qualifier-list pointer to T ''. For each type qualifier in the list, ident is a so-qualified pointer. @@ -5962,10 +5963,10 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    If, in the declaration ''T D1'', D1 has one of the forms:

    -          D[ type-qualifier-listopt assignment-expressionopt ]
    -          D[ static type-qualifier-listopt assignment-expression ]
    +          D[ type-qualifier-listopt assignment-expressionopt ]
    +          D[ static type-qualifier-listopt assignment-expression ]
               D[ type-qualifier-list static assignment-expression ]
    -          D[ type-qualifier-listopt * ]
    + D[ type-qualifier-listopt * ]
    and the type specified for ident in the declaration ''T D'' is ''derived-declarator-type-list T '', then the type specified for ident is ''derived-declarator-type-list array of T ''.123) (See 6.7.5.3 for the meaning of the optional type qualifiers and the keyword static.) @@ -6083,7 +6084,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 or
    -          D( identifier-listopt )
    + D( identifier-listopt ) and the type specified for ident in the declaration ''T D'' is ''derived-declarator-type-list T '', then the type specified for ident is ''derived-declarator-type-list function returning T ''. @@ -6229,20 +6230,20 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               type-name:
    -                 specifier-qualifier-list abstract-declaratoropt
    +                 specifier-qualifier-list abstract-declaratoropt
               abstract-declarator:
                      pointer
    -                 pointeropt direct-abstract-declarator
    +                 pointeropt direct-abstract-declarator
               direct-abstract-declarator:
                       ( abstract-declarator )
    -                  direct-abstract-declaratoropt [ type-qualifier-listopt
    -                                 assignment-expressionopt ]
    -                  direct-abstract-declaratoropt [ static type-qualifier-listopt
    +                  direct-abstract-declaratoropt [ type-qualifier-listopt
    +                                 assignment-expressionopt ]
    +                  direct-abstract-declaratoropt [ static type-qualifier-listopt
                                      assignment-expression ]
    -                  direct-abstract-declaratoropt [ type-qualifier-list static
    +                  direct-abstract-declaratoropt [ type-qualifier-list static
                                      assignment-expression ]
    -                  direct-abstract-declaratoropt [ * ]
    -                  direct-abstract-declaratoropt ( parameter-type-listopt )
    + direct-abstract-declaratoropt [ * ] + direct-abstract-declaratoropt ( parameter-type-listopt )
    Semantics

    In several contexts, it is necessary to specify a type. This is accomplished using a type @@ -6383,8 +6384,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 { initializer-list } { initializer-list , } initializer-list: - designationopt initializer - initializer-list , designationopt initializer + designationopt initializer + initializer-list , designationopt initializer designation: designator-list = designator-list: @@ -6747,7 +6748,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               compound-statement:
    -                { block-item-listopt }
    +                { block-item-listopt }
               block-item-list:
                       block-item
                       block-item-list block-item
    @@ -6763,7 +6764,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     

               expression-statement:
    -                 expressionopt ;
    + expressionopt ;
    Semantics

    The expression in an expression statement is evaluated as a void expression for its side @@ -6874,7 +6875,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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. @@ -6913,8 +6914,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 iteration-statement: while ( expression ) statement do statement while ( expression ) ; - for ( expressionopt ; expressionopt ; expressionopt ) statement - for ( declaration expressionopt ; expressionopt ) statement + for ( expressionopt ; expressionopt ; expressionopt ) statement + for ( declaration expressionopt ; expressionopt ) statement

    Constraints

    The controlling expression of an iteration statement shall have scalar type. @@ -6982,7 +6983,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 goto identifier ; continue ; break ; - return expressionopt ; + return expressionopt ;

    Semantics

    A jump statement causes an unconditional jump to another place. @@ -7010,10 +7011,10 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

  • The general initialization code is too large to warrant duplication.
  • The code to determine the next operation is at the head of the loop. (To allow it to be reached by continue statements, for example.) +
       /* ... */
       goto first_time;
       for (;;) {
    -
               // determine next operation
               /* ... */
               if (need to reinitialize) {
    @@ -7025,8 +7026,8 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                       continue;
               }
               // handle other operations
    -          /* ... */
    - } + /* ... */ + }

    @@ -7056,13 +7057,13 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 A continue statement causes a jump to the loop-continuation portion of the smallest enclosing iteration statement; that is, to the end of the loop body. More precisely, in each of the statements - while (/* ... */) { do { for (/* ... */) {

    + while (/* ... */) {                  do {                                 for (/* ... */) {
         /* ... */                            /* ... */                            /* ... */
         continue;                            continue;                            continue;
    -    /* ... */                            /* ... */                            /* ... */
    + /* ... */ /* ... */ /* ... */ contin: ; contin: ; contin: ; - } } while (/* ... */); } + } } while (/* ... */); } unless the continue statement shown is in an enclosed iteration statement (in which case it is interpreted within that statement), it is equivalent to goto contin;.138) @@ -7183,7 +7184,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

               function-definition:
    -                 declaration-specifiers declarator declaration-listopt compound-statement
    +                 declaration-specifiers declarator declaration-listopt compound-statement
               declaration-list:
                      declaration
                      declaration-list declaration
    @@ -7360,7 +7361,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007
               preprocessing-file:
    -                 groupopt
    +                 groupopt
               group:
                        group-part
                        group group-part
    @@ -7370,41 +7371,41 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                      text-line
                      # non-directive
               if-section:
    -                   if-group elif-groupsopt else-groupopt endif-line
    +                   if-group elif-groupsopt else-groupopt endif-line
               if-group:
    -                  # if     constant-expression new-line groupopt
    -                  # ifdef identifier new-line groupopt
    -                  # ifndef identifier new-line groupopt
    +                  # if     constant-expression new-line groupopt
    +                  # ifdef identifier new-line groupopt
    +                  # ifndef identifier new-line groupopt
               elif-groups:
                       elif-group
                       elif-groups elif-group
               elif-group:
    -                  # elif       constant-expression new-line groupopt
    +                  # elif       constant-expression new-line groupopt
               else-group:
    -                  # else       new-line groupopt
    +                  # else       new-line groupopt
               endif-line:
                       # endif      new-line
               control-line:
                      # include pp-tokens new-line
                      # define identifier replacement-list new-line
    -                 # define identifier lparen identifier-listopt )
    +                 # define identifier lparen identifier-listopt )
                                                      replacement-list new-line
                      # define identifier lparen ... ) replacement-list new-line
                      # define identifier lparen identifier-list , ... )
                                                      replacement-list new-line
                      # undef   identifier new-line
                      # line    pp-tokens new-line
    -                 # error   pp-tokensopt new-line
    -                 # pragma pp-tokensopt new-line
    +                 # error   pp-tokensopt new-line
    +                 # pragma pp-tokensopt new-line
                      #         new-line
               text-line:
    -                  pp-tokensopt new-line
    +                  pp-tokensopt new-line
               non-directive:
                      pp-tokens new-line
               lparen:
                         a ( character not immediately preceded by white-space
               replacement-list:
    -                 pp-tokensopt
    +                 pp-tokensopt
               pp-tokens:
                      preprocessing-token
                      pp-tokens preprocessing-token
    @@ -7488,8 +7489,8 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     

    Preprocessing directives of the forms

    -      # if   constant-expression new-line groupopt
    -      # elif constant-expression new-line groupopt
    + # if constant-expression new-line groupopt + # elif constant-expression new-line groupopt
    check whether the controlling constant expression evaluates to nonzero.

    Prior to evaluation, macro invocations in the list of preprocessing tokens that will become @@ -7517,8 +7518,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    -    # ifdef identifier new-line groupopt
    -    # ifndef identifier new-line groupopt
    + # ifdef identifier new-line groupopt + # ifndef identifier new-line groupopt check whether the identifier is or is not currently defined as a macro name. Their conditions are equivalent to #if defined identifier and #if !defined identifier respectively. @@ -7544,8 +7545,9 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    146) Thus, the constant expression in the following #if directive and if statement is not guaranteed to evaluate to the same value in these two contexts. +

        #if 'z' - 'a' == 25
    -   if ('z' - 'a' == 25)
    +   if ('z' - 'a' == 25)

    147) As indicated by the syntax, a preprocessing token shall not follow a #else or #endif directive @@ -7685,7 +7687,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    A preprocessing directive of the form

    -    # define identifier lparen identifier-listopt ) replacement-list new-line
    +    # define identifier lparen identifier-listopt ) replacement-list new-line
         # define identifier lparen ... ) replacement-list new-line
         # define identifier lparen identifier-list , ... ) replacement-list new-line
    defines a function-like macro with parameters, whose use is similar syntactically to a @@ -7994,7 +7996,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    A preprocessing directive of the form

    -    # line digit-sequence "s-char-sequenceopt" new-line
    + # line digit-sequence "s-char-sequenceopt" new-line sets the presumed line number similarly and changes the presumed name of the source file to be the contents of the character string literal.

    @@ -8013,7 +8015,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    A preprocessing directive of the form

    -    # error pp-tokensopt new-line
    + # error pp-tokensopt new-line causes the implementation to produce a diagnostic message that includes the specified sequence of preprocessing tokens. @@ -8022,7 +8024,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    A preprocessing directive of the form

    -    # pragma pp-tokensopt new-line
    + # pragma pp-tokensopt new-line where the preprocessing token STDC does not immediately follow pragma in the directive (prior to any macro replacement)152) causes the implementation to behave in an implementation-defined manner. The behavior might cause translation to fail or cause the @@ -8068,54 +8070,49 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    6.10.8 Predefined macro names

    The following macro names154) shall be defined by the implementation: - __DATE__ The date of translation of the preprocessing translation unit: a character -

    +
    +
    __DATE__
    The date of translation of the preprocessing translation unit: a character string literal of the form "Mmm dd yyyy", where the names of the months are the same as those generated by the asctime function, and the first character of dd is a space character if the value is less than 10. If the date of translation is not available, an implementation-defined valid date - shall be supplied.
    - __FILE__ The presumed name of the current source file (a character string literal).155) - __LINE__ The presumed line number (within the current source file) of the current -
    -            source line (an integer constant).155)
    - __STDC__ The integer constant 1, intended to indicate a conforming implementation. - __STDC_HOSTED__ The integer constant 1 if the implementation is a hosted -
    -           implementation or the integer constant 0 if it is not.
    - __STDC_MB_MIGHT_NEQ_WC__ The integer constant 1, intended to indicate that, in -
    +            shall be supplied.
    +
    __FILE__
    The presumed name of the current source file (a character string literal).155) +
    __LINE__
    The presumed line number (within the current source file) of the current + source line (an integer constant).155) +
    __STDC__
    The integer constant 1, intended to indicate a conforming implementation. +
    __STDC_HOSTED__
    The integer constant 1 if the implementation is a hosted + implementation or the integer constant 0 if it is not. +
    __STDC_MB_MIGHT_NEQ_WC__
    The integer constant 1, intended to indicate that, in the encoding for wchar_t, a member of the basic character set need not have a code value equal to its value when used as the lone character in an - integer character constant.
    - __STDC_VERSION__ The integer constant 199901L.156) - __TIME__ The time of translation of the preprocessing translation unit: a character -
    +           integer character constant.
    +
    __STDC_VERSION__
    The integer constant 199901L.156) +
    __TIME__
    The time of translation of the preprocessing translation unit: a character string literal of the form "hh:mm:ss" as in the time generated by the asctime function. If the time of translation is not available, an - implementation-defined valid time shall be supplied.
    - + implementation-defined valid time shall be supplied. +

    The following macro names are conditionally defined by the implementation: - __STDC_IEC_559__ The integer constant 1, intended to indicate conformance to the -

    -           specifications in annex F (IEC 60559 floating-point arithmetic).
    - __STDC_IEC_559_COMPLEX__ The integer constant 1, intended to indicate -
    +
    +
    __STDC_IEC_559__
    The integer constant 1, intended to indicate conformance to the + specifications in annex F (IEC 60559 floating-point arithmetic). +
    __STDC_IEC_559_COMPLEX__
    The integer constant 1, intended to indicate adherence to the specifications in informative annex G (IEC 60559 - compatible complex arithmetic).
    - __STDC_ISO_10646__ An integer constant of the form yyyymmL (for example, -

    -

    +           compatible complex arithmetic).
    +
    __STDC_ISO_10646__
    An integer constant of the form yyyymmL (for example, 199712L). If this symbol is defined, then every character in the Unicode required set, when stored in an object of type wchar_t, has the same value as the short identifier of that character. The Unicode required set consists of all the characters that are defined by ISO/IEC 10646, along with all amendments and technical corrigenda, as of the specified year and - month.
    + month. + +

    The values of the predefined macros (except for __FILE__ and __LINE__) remain constant throughout the translation unit.

    @@ -8543,7 +8540,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    footnotes

    166) See ''future library directions'' (7.26.1). -

    167) The imaginary unit is a number i such that i 2 = -1. +

    167) The imaginary unit is a number i such that i2 = -1.

    168) A specification for imaginary types is in informative annex G. @@ -8602,9 +8599,9 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

          (x + iy) x (u + iv) = (xu - yv) + i(yu + xv)
    -     (x + iy) / (u + iv) = [(xu + yv) + i(yu - xv)]/(u2 + v 2 )
    -     | x + iy | = (sqrt) x 2 + y 2
    -                  ???????????????
    + (x + iy) / (u + iv) = [(xu + yv) + i(yu - xv)]/(u2 + v2) + | x + iy | = (sqrt)(x2 + y2) + where the programmer can determine they are safe. @@ -9352,9 +9349,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007
               FE_DFL_ENV
    represents the default floating-point environment -- the one installed at program startup - + -- and has type ''pointer to const-qualified fenv_t''. It can be used as an argument to <fenv.h> functions that manage the floating-point environment.

    Additional implementation-defined environments, with macro definitions beginning with @@ -10105,140 +10100,144 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 strings shall start and end in the initial shift state. The members with type char are nonnegative numbers, any of which can be CHAR_MAX to indicate that the value is not available in the current locale. The members include the following: - char *decimal_point -

    -           The decimal-point character used to format nonmonetary quantities.
    - char *thousands_sep -
    +
    +
    char *decimal_point +
    + The decimal-point character used to format nonmonetary quantities. +
    char *thousands_sep +
    The character used to separate groups of digits before the decimal-point - character in formatted nonmonetary quantities.
    - char *grouping -
    +           character in formatted nonmonetary quantities.
    +
    char *grouping +
    A string whose elements indicate the size of each group of digits in - formatted nonmonetary quantities.
    - char *mon_decimal_point -
    -           The decimal-point used to format monetary quantities.
    - char *mon_thousands_sep -
    +           formatted nonmonetary quantities.
    +
    char *mon_decimal_point +
    + The decimal-point used to format monetary quantities. +
    char *mon_thousands_sep +
    The separator for groups of digits before the decimal-point in formatted - monetary quantities.
    - char *mon_grouping -
    +           monetary quantities.
    +
    char *mon_grouping +
    A string whose elements indicate the size of each group of digits in - formatted monetary quantities.
    - char *positive_sign -
    +           formatted monetary quantities.
    +
    char *positive_sign +
    The string used to indicate a nonnegative-valued formatted monetary - quantity.
    - char *negative_sign -
    -           The string used to indicate a negative-valued formatted monetary quantity.
    - char *currency_symbol -
    -           The local currency symbol applicable to the current locale.
    - char frac_digits -
    +           quantity.
    +
    char *negative_sign +
    + The string used to indicate a negative-valued formatted monetary quantity. +
    char *currency_symbol +
    + The local currency symbol applicable to the current locale. +
    char frac_digits +
    The number of fractional digits (those after the decimal-point) to be - displayed in a locally formatted monetary quantity.
    - char p_cs_precedes -
    +           displayed in a locally formatted monetary quantity.
    +
    char p_cs_precedes +
    Set to 1 or 0 if the currency_symbol respectively precedes or - succeeds the value for a nonnegative locally formatted monetary quantity.
    - char n_cs_precedes + succeeds the value for a nonnegative locally formatted monetary quantity. +
    char n_cs_precedes -
    +
    Set to 1 or 0 if the currency_symbol respectively precedes or - succeeds the value for a negative locally formatted monetary quantity.
    - char p_sep_by_space -
    +           succeeds the value for a negative locally formatted monetary quantity.
    +
    char p_sep_by_space +
    Set to a value indicating the separation of the currency_symbol, the sign string, and the value for a nonnegative locally formatted monetary - quantity.
    - char n_sep_by_space -
    +           quantity.
    +
    char n_sep_by_space +
    Set to a value indicating the separation of the currency_symbol, the sign string, and the value for a negative locally formatted monetary - quantity.
    - char p_sign_posn -
    +           quantity.
    +
    char p_sign_posn +
    Set to a value indicating the positioning of the positive_sign for a - nonnegative locally formatted monetary quantity.
    - char n_sign_posn -
    +           nonnegative locally formatted monetary quantity.
    +
    char n_sign_posn +
    Set to a value indicating the positioning of the negative_sign for a - negative locally formatted monetary quantity.
    - char *int_curr_symbol -
    +           negative locally formatted monetary quantity.
    +
    char *int_curr_symbol +
    The international currency symbol applicable to the current locale. The first three characters contain the alphabetic international currency symbol in accordance with those specified in ISO 4217. The fourth character (immediately preceding the null character) is the character used to separate - the international currency symbol from the monetary quantity.
    - char int_frac_digits -
    +           the international currency symbol from the monetary quantity.
    +
    char int_frac_digits +
    The number of fractional digits (those after the decimal-point) to be - displayed in an internationally formatted monetary quantity.
    - char int_p_cs_precedes -
    +           displayed in an internationally formatted monetary quantity.
    +
    char int_p_cs_precedes +
    Set to 1 or 0 if the int_curr_symbol respectively precedes or succeeds the value for a nonnegative internationally formatted monetary - quantity.
    - char int_n_cs_precedes -
    +           quantity.
    +
    char int_n_cs_precedes +
    Set to 1 or 0 if the int_curr_symbol respectively precedes or succeeds the value for a negative internationally formatted monetary - quantity.
    - char int_p_sep_by_space + quantity. +
    char int_p_sep_by_space -
    +
    Set to a value indicating the separation of the int_curr_symbol, the sign string, and the value for a nonnegative internationally formatted - monetary quantity.
    - char int_n_sep_by_space -
    +           monetary quantity.
    +
    char int_n_sep_by_space +
    Set to a value indicating the separation of the int_curr_symbol, the sign string, and the value for a negative internationally formatted monetary - quantity.
    - char int_p_sign_posn -
    +           quantity.
    +
    char int_p_sign_posn +
    Set to a value indicating the positioning of the positive_sign for a - nonnegative internationally formatted monetary quantity.
    - char int_n_sign_posn -

    -

    +           nonnegative internationally formatted monetary quantity.
    +
    char int_n_sign_posn +
    Set to a value indicating the positioning of the negative_sign for a - negative internationally formatted monetary quantity.
    + negative internationally formatted monetary quantity. + +

    The elements of grouping and mon_grouping are interpreted according to the following: - CHAR_MAX No further grouping is to be performed. - 0 The previous element is to be repeatedly used for the remainder of the -

    -               digits.
    - other The integer value is the number of digits that compose the current group. -

    -

    +
    +
    CHAR_MAX
    No further grouping is to be performed. +
    0
    The previous element is to be repeatedly used for the remainder of the + digits. +
    other
    The integer value is the number of digits that compose the current group. The next element is examined to determine the size of the next group of - digits before the current group.
    + digits before the current group. + +

    The values of p_sep_by_space, n_sep_by_space, int_p_sep_by_space, and int_n_sep_by_space are interpreted according to the following: - 0 No space separates the currency symbol and value. - 1 If the currency symbol and sign string are adjacent, a space separates them from the -

    -     value; otherwise, a space separates the currency symbol from the value.
    - 2 If the currency symbol and sign string are adjacent, a space separates them; -
    -     otherwise, a space separates the sign string from the value.
    +
    +
    0
    No space separates the currency symbol and value. +
    1
    If the currency symbol and sign string are adjacent, a space separates them from the + value; otherwise, a space separates the currency symbol from the value. +
    2
    If the currency symbol and sign string are adjacent, a space separates them; + otherwise, a space separates the sign string from the value. +
    For int_p_sep_by_space and int_n_sep_by_space, the fourth character of int_curr_symbol is used instead of a space.

    The values of p_sign_posn, n_sign_posn, int_p_sign_posn, and int_n_sign_posn are interpreted according to the following: - 0 Parentheses surround the quantity and currency symbol. - 1 The sign string precedes the quantity and currency symbol. - 2 The sign string succeeds the quantity and currency symbol. - 3 The sign string immediately precedes the currency symbol. - 4 The sign string immediately succeeds the currency symbol. +

    +
    0
    Parentheses surround the quantity and currency symbol. +
    1
    The sign string precedes the quantity and currency symbol. +
    2
    The sign string succeeds the quantity and currency symbol. +
    3
    The sign string immediately precedes the currency symbol. +
    4
    The sign string immediately succeeds the currency symbol. +

    The implementation shall behave as if no library function calls the localeconv @@ -10254,19 +10253,20 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 EXAMPLE 1 The following table illustrates rules which may well be used by four countries to format monetary quantities.

    -                               Local format                                     International format
    + Local format International format - Country Positive Negative Positive Negative + Country Positive Negative Positive Negative Country1 1.234,56 mk -1.234,56 mk FIM 1.234,56 FIM -1.234,56 Country2 L.1.234 -L.1.234 ITL 1.234 -ITL 1.234 - Country3 fl. 1.234,56 fl. -1.234,56 NLG 1.234,56 NLG -1.234,56 + Country3 fl. 1.234,56 fl. -1.234,56 NLG 1.234,56 NLG -1.234,56 Country4 SFrs.1,234.56 SFrs.1,234.56C CHF 1,234.56 CHF 1,234.56C +

    For these four countries, the respective values for the monetary members of the structure returned by localeconv could be:

    -                                   Country1              Country2              Country3            Country4
    + Country1 Country2 Country3 Country4 mon_decimal_point "," "" "," "." mon_thousands_sep "." "." "." "," @@ -10289,30 +10289,28 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 int_n_sep_by_space 2 1 2 1 int_p_sign_posn 1 1 1 1 int_n_sign_posn 4 1 4 2 +

    EXAMPLE 2 The following table illustrates how the cs_precedes, sep_by_space, and sign_posn members affect the formatted value.

    -                                                               p_sep_by_space
    - - p_cs_precedes p_sign_posn 0 1 2 - -
    -                 0                    0         (1.25$)            (1.25 $)            (1.25$)
    -                                      1         +1.25$             +1.25 $             + 1.25$
    -                                      2         1.25$+             1.25 $+             1.25$ +
    -                                      3         1.25+$             1.25 +$             1.25+ $
    -                                      4         1.25$+             1.25 $+             1.25$ +
    - - -
    -                 1                    0         ($1.25)            ($ 1.25)            ($1.25)
    -                                      1         +$1.25             +$ 1.25             + $1.25
    -                                      2         $1.25+             $ 1.25+             $1.25 +
    -                                      3         +$1.25             +$ 1.25             + $1.25
    -                                      4         $+1.25             $+ 1.25             $ +1.25
    + p_sep_by_space + p_cs_precedes p_sign_posn 0 1 2 + + 0 0 (1.25$) (1.25 $) (1.25$) + 1 +1.25$ +1.25 $ + 1.25$ + 2 1.25$+ 1.25 $+ 1.25$ + + 3 1.25+$ 1.25 +$ 1.25+ $ + 4 1.25$+ 1.25 $+ 1.25$ + + 1 0 ($1.25) ($ 1.25) ($1.25) + 1 +$1.25 +$ 1.25 + $1.25 + 2 $1.25+ $ 1.25+ $1.25 + + 3 +$1.25 +$ 1.25 + $1.25 + 4 $+1.25 $+ 1.25 $ +1.25 + +

    7.12 Mathematics

    The header <math.h> declares two types and many mathematical functions and defines @@ -10876,7 +10874,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 magnitude of x is too large.

    Returns

    - The exp functions return ex . + The exp functions return ex.

    7.12.6.2 The exp2 functions
    Synopsis
    @@ -10892,7 +10890,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 magnitude of x is too large.
    Returns

    - The exp2 functions return 2x . + The exp2 functions return 2x.

    7.12.6.3 The expm1 functions
    Synopsis
    @@ -10909,7 +10907,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 error occurs if x is too large.208)
    Returns

    - The expm1 functions return ex - 1. + The expm1 functions return ex - 1.

    footnotes

    208) For small magnitude x, expm1(x) is expected to be more accurate than exp(x) - 1. @@ -10931,7 +10929,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    If value is not a floating-point number, the results are unspecified. Otherwise, the frexp functions return the value x, such that x has a magnitude in the interval [1/2, 1) or - zero, and value equals x x 2*exp . If value is zero, both parts of the result are zero. + zero, and value equals x 2*exp . If value is zero, both parts of the result are zero.

    7.12.6.5 The ilogb functions
    Synopsis
    @@ -10973,7 +10971,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 range error may occur.
    Returns

    - The ldexp functions return x x 2exp . + The ldexp functions return x 2exp .

    7.12.6.7 The log functions
    Synopsis
    @@ -11064,7 +11062,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 format. If x is subnormal it is treated as though it were normalized; thus, for positive finite x,
    -       1 <= x x FLT_RADIX-logb(x) < FLT_RADIX
    + 1 <= x FLT_RADIX-logb(x) < FLT_RADIX A domain error or range error may occur if the argument is zero.
    Returns

    @@ -11101,11 +11099,11 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 long double scalblnl(long double x, long int n);

    Description

    - The scalbn and scalbln functions compute x x FLT_RADIXn efficiently, not - normally by computing FLT_RADIXn explicitly. A range error may occur. + The scalbn and scalbln functions compute x FLT_RADIXn efficiently, not + normally by computing FLT_RADIXn explicitly. A range error may occur.

    Returns

    - The scalbn and scalbln functions return x x FLT_RADIXn . + The scalbn and scalbln functions return x FLT_RADIXn .

    7.12.7 Power and absolute-value functions

    @@ -11122,7 +11120,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 The cbrt functions compute the real cube root of x.
    Returns

    - The cbrt functions return x1/3 . + The cbrt functions return x1/3.

    7.12.7.2 The fabs functions
    Synopsis
    @@ -11155,10 +11153,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    Returns

    - The hypot functions return (sqrt)x2 + y2 . -

    -                            ???
    -                            ???????????????
    + The hypot functions return (sqrt)(x2 + y2).
    7.12.7.4 The pow functions
    Synopsis
    @@ -11176,7 +11171,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 is zero and y is less than zero.
    Returns

    - The pow functions return xy . + The pow functions return xy.

    7.12.7.5 The sqrt functions
    Synopsis
    @@ -11193,10 +11188,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 the argument is less than zero.
    Returns

    - The sqrt functions return (sqrt)x. -

    -                           ???
    -                           ???
    + The sqrt functions return (sqrt)(x).

    7.12.8 Error and gamma functions

    @@ -11212,20 +11204,12 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    The erf functions compute the error function of x.

    Returns
    +

    + The erf functions return

    -                                    2        x
    -                                         (integral)
    - - The erf functions return erf x = e-t dt. -
    -                                                   2
    - - -
    -                                    (sqrt)pi
    -                                    ???
    -                                    ???    0
    - + 2 x + erf x = --- (integral) e-t2 dt . + (sqrt)(pi) 0
    7.12.8.2 The erfc functions
    Synopsis
    @@ -11240,21 +11224,14 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 The erfc functions compute the complementary error function of x. A range error occurs if x is too large.
    Returns
    +

    + The erfc functions return

    -                                                           2        (inf)
    -                                                                (integral)
    - - The erfc functions return erfc x = 1 - erf x = e-t dt. -
    -                                                                          2
    - + 2 (inf) + erfc x = 1 - erf x = --- (integral) e-t2 dt . + (sqrt)(pi) x -
    -                                                           (sqrt)pi
    -                                                           ???
    -                                                           ???    x
    -
    7.12.8.3 The lgamma functions
    Synopsis

    @@ -11305,7 +11282,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    Returns

    - The ceil functions return ???x???, expressed as a floating-point number. + The ceil functions return [^x^], expressed as a floating-point number.

    7.12.9.2 The floor functions
    Synopsis
    @@ -11320,7 +11297,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 The floor functions compute the largest integer value not greater than x.
    Returns

    - The floor functions return ???x???, expressed as a floating-point number. + The floor functions return [_x_], expressed as a floating-point number.

    7.12.9.3 The nearbyint functions
    Synopsis
    @@ -11495,7 +11472,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    The remquo functions compute the same remainder as the remainder functions. In the object pointed to by quo they store a value whose sign is the sign of x/y and whose - magnitude is congruent modulo 2n to the magnitude of the integral quotient of x/y, where + magnitude is congruent modulo 2n to the magnitude of the integral quotient of x/y, where n is an implementation-defined integer greater than or equal to 3.

    Returns

    @@ -11607,9 +11584,9 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    The fdim functions determine the positive difference between their arguments:

    -       ???x - y if x > y
    -       ???
    -       ???+0     if x <= y
    + {x - y if x > y + { + {+0 if x <= y A range error may occur.
    Returns

    @@ -11671,12 +11648,12 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 long double z);

    Description

    - The fma functions compute (x x y) + z, rounded as one ternary operation: they compute + The fma functions compute (x y) + z, rounded as one ternary operation: they compute the value (as if) to infinite precision and round once to the result format, according to the current rounding mode. A range error may occur.

    Returns

    - The fma functions return (x x y) + z, rounded as one ternary operation. + The fma functions return (x y) + z, rounded as one ternary operation. @@ -11843,7 +11820,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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:

      @@ -12200,13 +12177,13 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 va_list ap; char *array[MAXARGS]; int ptr_no = 0; - if (n_ptrs > MAXARGS) - n_ptrs = MAXARGS; - va_start(ap, n_ptrs); - while (ptr_no < n_ptrs) - array[ptr_no++] = va_arg(ap, char *); - va_end(ap); - f2(n_ptrs, array); + if (n_ptrs > MAXARGS) + n_ptrs = MAXARGS; + va_start(ap, n_ptrs); + while (ptr_no < n_ptrs) + array[ptr_no++] = va_arg(ap, char *); + va_end(ap); + f2(n_ptrs, array); } Each call to f1 is required to have visible the definition of the function or a declaration such as
      @@ -12312,7 +12289,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
               static type t;
      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 +
      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 @@ -12476,33 +12453,42 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

      • minimum values of exact-width signed integer types - INTN_MIN exactly -(2 N -1 ) +
        +  INTN_MIN                                    exactly -(2N-1)
      • maximum values of exact-width signed integer types - INTN_MAX exactly 2 N -1 - 1 +
        +  INTN_MAX                                    exactly 2N-1 - 1
      • maximum values of exact-width unsigned integer types - UINTN_MAX exactly 2 N - 1 +
        +  UINTN_MAX                                   exactly 2N - 1
      7.18.2.2 Limits of minimum-width integer types

      • minimum values of minimum-width signed integer types - INT_LEASTN_MIN -(2 N -1 - 1) +
        +  INT_LEASTN_MIN                                      -(2N-1 - 1)
      • maximum values of minimum-width signed integer types - INT_LEASTN_MAX 2 N -1 - 1 +
        +  INT_LEASTN_MAX                                      2N-1 - 1
      • maximum values of minimum-width unsigned integer types - UINT_LEASTN_MAX 2N - 1 +
        +  UINT_LEASTN_MAX                                     2N - 1
      7.18.2.3 Limits of fastest minimum-width integer types

      • minimum values of fastest minimum-width signed integer types - INT_FASTN_MIN -(2 N -1 - 1) +
        +  INT_FASTN_MIN                                       -(2N-1 - 1)
      • maximum values of fastest minimum-width signed integer types - INT_FASTN_MAX 2 N -1 - 1 +
        +  INT_FASTN_MAX                                       2N-1 - 1
      • maximum values of fastest minimum-width unsigned integer types - UINT_FASTN_MAX 2N - 1 +
        +  UINT_FASTN_MAX                                      2N - 1
      7.18.2.4 Limits of integer types capable of holding object pointers
      @@ -12510,24 +12496,28 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007
      • minimum value of pointer-holding signed integer type
        -     INTPTR_MIN                                       -(215 - 1)
        + INTPTR_MIN -(215 - 1)
      • maximum value of pointer-holding signed integer type
        -     INTPTR_MAX                                       215 - 1
        + INTPTR_MAX 215 - 1
      • maximum value of pointer-holding unsigned integer type - UINTPTR_MAX 216 - 1 +
        +   UINTPTR_MAX                                        216 - 1
      7.18.2.5 Limits of greatest-width integer types

      • minimum value of greatest-width signed integer type - INTMAX_MIN -(263 - 1) +
        +   INTMAX_MIN                                         -(263 - 1)
      • maximum value of greatest-width signed integer type - INTMAX_MAX 263 - 1 +
        +   INTMAX_MAX                                         263 - 1
      • maximum value of greatest-width unsigned integer type - UINTMAX_MAX 264 - 1 +
        +   UINTMAX_MAX                                        264 - 1

      7.18.3 Limits of other integer types

      @@ -12544,23 +12534,31 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 actually provides.228)
      • limits of ptrdiff_t - PTRDIFF_MIN -65535 - PTRDIFF_MAX +65535 +
        +   PTRDIFF_MIN                                            -65535
        +   PTRDIFF_MAX                                            +65535
        +
      • limits of sig_atomic_t - SIG_ATOMIC_MIN see below - SIG_ATOMIC_MAX see below +
        +   SIG_ATOMIC_MIN                                         see below
        +   SIG_ATOMIC_MAX                                         see below
        +
      • limit of size_t - SIZE_MAX 65535 +
        +   SIZE_MAX                                               65535
        +
      • limits of wchar_t - - - WCHAR_MIN see below - WCHAR_MAX see below +
        +   WCHAR_MIN                                              see below
        +   WCHAR_MAX                                              see below
        +
      • limits of wint_t - WINT_MIN see below - WINT_MAX see below +
        +   WINT_MIN                                               see below
        +   WINT_MAX                                               see below
        +

      If sig_atomic_t (see 7.14) is defined as a signed integer type, the value of @@ -12792,7 +12790,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 +

      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 @@ -12861,9 +12859,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

      At program startup, three text streams are predefined and need not be opened explicitly -

        -
      • standard input (for reading conventional input), standard output (for writing -
      + -- standard input (for reading conventional input), standard output (for writing conventional output), and standard error (for writing diagnostic output). As initially opened, the standard error stream is not fully buffered; the standard input and standard output streams are fully buffered if and only if the stream can be determined not to refer @@ -12910,7 +12906,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 +
      Environmental limits

      The value of FOPEN_MAX shall be at least eight, including the three standard text streams. @@ -12979,7 +12975,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 @@ -13018,7 +13014,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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. @@ -13086,23 +13082,22 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

      The argument mode points to a string. If the string is one of the following, the file is open in the indicated mode. Otherwise, the behavior is undefined.237) - r open text file for reading - w truncate to zero length or create text file for writing - a append; open or create text file for writing at end-of-file - rb open binary file for reading - wb truncate to zero length or create binary file for writing - ab append; open or create binary file for writing at end-of-file - r+ open text file for update (reading and writing) - w+ truncate to zero length or create text file for update - a+ append; open or create text file for update, writing at end-of-file - - - +

      +
      r
      open text file for reading +
      w
      truncate to zero length or create text file for writing +
      a
      append; open or create text file for writing at end-of-file +
      rb
      open binary file for reading +
      wb
      truncate to zero length or create binary file for writing +
      ab
      append; open or create binary file for writing at end-of-file +
      r+
      open text file for update (reading and writing) +
      w+
      truncate to zero length or create text file for update +
      a+
      append; open or create text file for update, writing at end-of-file - r+b or rb+ open binary file for update (reading and writing) - w+b or wb+ truncate to zero length or create binary file for update - a+b or ab+ append; open or create binary file for update, writing at end-of-file +
      r+b or rb+
      open binary file for update (reading and writing) +
      w+b or wb+
      truncate to zero length or create binary file for update +
      a+b or ab+
      append; open or create binary file for update, writing at end-of-file +

      Opening a file with read mode ('r' as the first character in the mode argument) fails if the file does not exist or cannot be read. @@ -13287,25 +13282,18 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 precision were omitted.

      The flag characters and their meanings are: - - The result of the conversion is left-justified within the field. (It is right-justified if -

      -          this flag is not specified.)
      - + The result of a signed conversion always begins with a plus or minus sign. (It -
      -          begins with a sign only when a negative value is converted if this flag is not
      - - - +
      +
      -
      The result of the conversion is left-justified within the field. (It is right-justified if + this flag is not specified.) +
      +
      The result of a signed conversion always begins with a plus or minus sign. (It + begins with a sign only when a negative value is converted if this flag is not -
      -           specified.)242)
      - space If the first character of a signed conversion is not a sign, or if a signed conversion -
      +           specified.)242)
      +
      space
      If the first character of a signed conversion is not a sign, or if a signed conversion results in no characters, a space is prefixed to the result. If the space and + flags - both appear, the space flag is ignored.
      - # The result is converted to an ''alternative form''. For o conversion, it increases -
      +       both appear, the space flag is ignored.
      +
      #
      The result is converted to an ''alternative form''. For o conversion, it increases the precision, if and only if necessary, to force the first digit of the result to be a zero (if the value and precision are both 0, a single 0 is printed). For x (or X) conversion, a nonzero result has 0x (or 0X) prefixed to it. For a, A, e, E, f, F, g, @@ -13313,84 +13301,74 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 contains a decimal-point character, even if no digits follow it. (Normally, a decimal-point character appears in the result of these conversions only if a digit follows it.) For g and G conversions, trailing zeros are not removed from the - result. For other conversions, the behavior is undefined.
      - 0 For d, i, o, u, x, X, a, A, e, E, f, F, g, and G conversions, leading zeros -

      -

      +           result. For other conversions, the behavior is undefined.
      +
      0
      For d, i, o, u, x, X, a, A, e, E, f, F, g, and G conversions, leading zeros (following any indication of sign or base) are used to pad to the field width rather than performing space padding, except when converting an infinity or NaN. If the 0 and - flags both appear, the 0 flag is ignored. For d, i, o, u, x, and X conversions, if a precision is specified, the 0 flag is ignored. For other - conversions, the behavior is undefined.
      + conversions, the behavior is undefined. +
      +

      The length modifiers and their meanings are: - hh Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -

      +
      +
      hh
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a signed char or unsigned char argument (the argument will have been promoted according to the integer promotions, but its value shall be converted to signed char or unsigned char before printing); or that a following n conversion specifier applies to a pointer to a signed char - argument.
      - h Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
      +                argument.
      +
      h
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a short int or unsigned short int argument (the argument will have been promoted according to the integer promotions, but its value shall be converted to short int or unsigned short int before printing); or that a following n conversion specifier applies to a pointer to a short - int argument.
      - l (ell) Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
      +                int argument.
      +
      l (ell)
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a long int or unsigned long int argument; that a following n - conversion specifier applies to a pointer to a long int argument; that a
      - + conversion specifier applies to a pointer to a long int argument; that a -
                     following c conversion specifier applies to a wint_t argument; that a
                     following s conversion specifier applies to a pointer to a wchar_t
                     argument; or has no effect on a following a, A, e, E, f, F, g, or G conversion
      -              specifier.
      - ll (ell-ell) Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
      +              specifier.
      +
      ll (ell-ell)
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a long long int or unsigned long long int argument; or that a following n conversion specifier applies to a pointer to a long long int - argument.
      - j Specifies that a following d, i, o, u, x, or X conversion specifier applies to -
      +              argument.
      +
      j
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to an intmax_t or uintmax_t argument; or that a following n conversion - specifier applies to a pointer to an intmax_t argument.
      - z Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
      +              specifier applies to a pointer to an intmax_t argument.
      +
      z
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument; or that a following n conversion specifier applies to a pointer to a signed integer type - corresponding to size_t argument.
      - t Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
      +              corresponding to size_t argument.
      +
      t
      Specifies that a following d, i, o, u, x, or X conversion specifier applies to a ptrdiff_t or the corresponding unsigned integer type argument; or that a following n conversion specifier applies to a pointer to a ptrdiff_t - argument.
      - L Specifies that a following a, A, e, E, f, F, g, or G conversion specifier -
      -              applies to a long double argument.
      - If a length modifier appears with any conversion specifier other than as specified above, + argument. +
      L
      Specifies that a following a, A, e, E, f, F, g, or G conversion specifier + applies to a long double argument. + +If a length modifier appears with any conversion specifier other than as specified above, the behavior is undefined.

      The conversion specifiers and their meanings are: - d,i The int argument is converted to signed decimal in the style [-]dddd. The -

      +
      +
      d,i
      The int argument is converted to signed decimal in the style [-]dddd. The precision specifies the minimum number of digits to appear; if the value being converted can be represented in fewer digits, it is expanded with leading zeros. The default precision is 1. The result of converting a zero - value with a precision of zero is no characters.
      - o,u,x,X The unsigned int argument is converted to unsigned octal (o), unsigned + value with a precision of zero is no characters. +
      o,u,x,X
      The unsigned int argument is converted to unsigned octal (o), unsigned -
                decimal (u), or unsigned hexadecimal notation (x or X) in the style dddd; the
                letters abcdef are used for x conversion and the letters ABCDEF for X
                conversion. The precision specifies the minimum number of digits to appear;
                if the value being converted can be represented in fewer digits, it is expanded
                with leading zeros. The default precision is 1. The result of converting a
      -         zero value with a precision of zero is no characters.
      - f,F A double argument representing a floating-point number is converted to -
      +         zero value with a precision of zero is no characters.
      +
      f,F
      A double argument representing a floating-point number is converted to decimal notation in the style [-]ddd.ddd, where the number of digits after the decimal-point character is equal to the precision specification. If the precision is missing, it is taken as 6; if the precision is zero and the # flag is @@ -13403,9 +13381,8 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 [-]nan or [-]nan(n-char-sequence) -- which style, and the meaning of any n-char-sequence, is implementation-defined. The F conversion specifier produces INF, INFINITY, or NAN instead of inf, infinity, or nan, - respectively.243)
      - e,E A double argument representing a floating-point number is converted in the -
      +              respectively.243)
      +
      e,E
      A double argument representing a floating-point number is converted in the style [-]d.ddd e(+-)dd, where there is one digit (which is nonzero if the argument is nonzero) before the decimal-point character and the number of digits after it is equal to the precision; if the precision is missing, it is taken as @@ -13416,26 +13393,24 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 and only as many more digits as necessary to represent the exponent. If the value is zero, the exponent is zero. A double argument representing an infinity or NaN is converted in the style - of an f or F conversion specifier.
      - g,G A double argument representing a floating-point number is converted in -
      +              of an f or F conversion specifier.
      +
      g,G
      A double argument representing a floating-point number is converted in style f or e (or in style F or E in the case of a G conversion specifier), depending on the value converted and the precision. Let P equal the precision if nonzero, 6 if the precision is omitted, or 1 if the precision is zero. Then, if a conversion with style E would have an exponent of X : - -- if P > X >= -4, the conversion is with style f (or F) and precision +
        +
      • if P > X >= -4, the conversion is with style f (or F) and precision P - (X + 1). - -- otherwise, the conversion is with style e (or E) and precision P - 1. - Finally, unless the # flag is used, any trailing zeros are removed from the
      - +
    • otherwise, the conversion is with style e (or E) and precision P - 1. +
    + Finally, unless the # flag is used, any trailing zeros are removed from the -
                    fractional portion of the result and the decimal-point character is removed if
                    there is no fractional portion remaining.
                    A double argument representing an infinity or NaN is converted in the style
    -               of an f or F conversion specifier.
    - a,A A double argument representing a floating-point number is converted in the -
    +               of an f or F conversion specifier.
    +
    a,A
    A double argument representing a floating-point number is converted in the style [-]0xh.hhhh p(+-)d, where there is one hexadecimal digit (which is nonzero if the argument is a normalized floating-point number and is otherwise unspecified) before the decimal-point character244) and the number @@ -13451,22 +13426,17 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 least one digit, and only as many more digits as necessary to represent the decimal exponent of 2. If the value is zero, the exponent is zero. A double argument representing an infinity or NaN is converted in the style - of an f or F conversion specifier.
    - c If no l length modifier is present, the int argument is converted to an -
    +               of an f or F conversion specifier.
    +
    c
    If no l length modifier is present, the int argument is converted to an unsigned char, and the resulting character is written. If an l length modifier is present, the wint_t argument is converted as if by an ls conversion specification with no precision and an argument that points to the initial element of a two-element array of wchar_t, the first element containing the wint_t argument to the lc conversion specification and the - second a null wide character.
    - s If no l length modifier is present, the argument shall be a pointer to the initial -
    -               element of an array of character type.246) Characters from the array are
    - - + second a null wide character. +
    s
    If no l length modifier is present, the argument shall be a pointer to the initial + element of an array of character type.246) Characters from the array are -
                     written up to (but not including) the terminating null character. If the
                     precision is specified, no more than that many bytes are written. If the
                     precision is not specified or is greater than the size of the array, the array shall
    @@ -13483,21 +13453,19 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                     written (including shift sequences, if any), and the array shall contain a null
                     wide character if, to equal the multibyte character sequence length given by
                     the precision, the function would need to access a wide character one past the
    -                end of the array. In no case is a partial multibyte character written.247)
    - p The argument shall be a pointer to void. The value of the pointer is -
    +                end of the array. In no case is a partial multibyte character written.247)
    +
    p
    The argument shall be a pointer to void. The value of the pointer is converted to a sequence of printing characters, in an implementation-defined - manner.
    - n The argument shall be a pointer to signed integer into which is written the -
    +                manner.
    +
    n
    The argument shall be a pointer to signed integer into which is written the number of characters written to the output stream so far by this call to fprintf. No argument is converted, but one is consumed. If the conversion specification includes any flags, a field width, or a precision, the behavior is - undefined.
    - % A % character is written. No argument is converted. The complete + undefined. +
    %
    A % character is written. No argument is converted. The complete + conversion specification shall be %%. +

    -

    -                conversion specification shall be %%.
    If a conversion specification is invalid, the behavior is undefined.248) If any argument is not the correct type for the corresponding conversion specification, the behavior is undefined. @@ -13513,7 +13481,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    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 @@ -13532,7 +13500,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    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. @@ -13595,7 +13563,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    244) Binary implementations can choose the hexadecimal digit to the left of the decimal-point character so that subsequent digits align to nibble (4-bit) boundaries. -

    245) The precision p is sufficient to distinguish values of the source type if 16 p-1 > b n where b is +

    245) The precision p is sufficient to distinguish values of the source type if 16p-1 > b n where b is FLT_RADIX and n is the number of base-b digits in the significand of the source type. A smaller p might suffice depending on the implementation's scheme for determining the digit to the left of the decimal-point character. @@ -13684,73 +13652,61 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 in the object, the behavior is undefined.

    The length modifiers and their meanings are: - hh Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -

    -              to an argument with type pointer to signed char or unsigned char.
    - h Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +
    +
    hh
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies + to an argument with type pointer to signed char or unsigned char. +
    h
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to short int or unsigned short - int.
    - l (ell) Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +              int.
    +
    l (ell)
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to long int or unsigned long int; that a following a, A, e, E, f, F, g, or G conversion specifier applies to an argument with type pointer to double; or that a following c, s, or [ - conversion specifier applies to an argument with type pointer to wchar_t.
    - ll (ell-ell) Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +              conversion specifier applies to an argument with type pointer to wchar_t.
    +
    ll (ell-ell)
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to long long int or unsigned - long long int.
    - j Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    -              to an argument with type pointer to intmax_t or uintmax_t.
    - z Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +              long long int.
    +
    j
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies + to an argument with type pointer to intmax_t or uintmax_t. +
    z
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to size_t or the corresponding signed - integer type.
    - t Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +              integer type.
    +
    t
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to ptrdiff_t or the corresponding - unsigned integer type.
    - L Specifies that a following a, A, e, E, f, F, g, or G conversion specifier -
    -              applies to an argument with type pointer to long double.
    + unsigned integer type. +
    L
    Specifies that a following a, A, e, E, f, F, g, or G conversion specifier + applies to an argument with type pointer to long double. + If a length modifier appears with any conversion specifier other than as specified above, the behavior is undefined.

    The conversion specifiers and their meanings are: - d Matches an optionally signed decimal integer, whose format is the same as -

    +
    +
    d
    Matches an optionally signed decimal integer, whose format is the same as expected for the subject sequence of the strtol function with the value 10 for the base argument. The corresponding argument shall be a pointer to - signed integer.
    - i Matches an optionally signed integer, whose format is the same as expected + signed integer. +
    i
    Matches an optionally signed integer, whose format is the same as expected -
                  for the subject sequence of the strtol function with the value 0 for the
                  base argument. The corresponding argument shall be a pointer to signed
    -             integer.
    - o Matches an optionally signed octal integer, whose format is the same as -
    +             integer.
    +
    o
    Matches an optionally signed octal integer, whose format is the same as expected for the subject sequence of the strtoul function with the value 8 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - u Matches an optionally signed decimal integer, whose format is the same as -
    +               unsigned integer.
    +
    u
    Matches an optionally signed decimal integer, whose format is the same as expected for the subject sequence of the strtoul function with the value 10 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - x Matches an optionally signed hexadecimal integer, whose format is the same -
    +               unsigned integer.
    +
    x
    Matches an optionally signed hexadecimal integer, whose format is the same as expected for the subject sequence of the strtoul function with the value 16 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - a,e,f,g Matches an optionally signed floating-point number, infinity, or NaN, whose -
    +               unsigned integer.
    +
    a,e,f,g
    Matches an optionally signed floating-point number, infinity, or NaN, whose format is the same as expected for the subject sequence of the strtod - function. The corresponding argument shall be a pointer to floating.
    - c Matches a sequence of characters of exactly the number specified by the field -
    +         function. The corresponding argument shall be a pointer to floating.
    +
    c
    Matches a sequence of characters of exactly the number specified by the field width (1 if no field width is present in the directive).252) 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 @@ -13762,27 +13718,22 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 initialized to zero before the first multibyte character is converted. The 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.252) -
    +               No null wide character is added.
    +
    s
    Matches a sequence of non-white-space characters.252) 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. - If an l length modifier is present, the input shall be a sequence of multibyte
    - - + If an l length modifier is present, the input shall be a sequence of multibyte -
               characters that begins in the initial shift state. Each multibyte character is
               converted to a wide character as if by a call to the mbrtowc function, with
               the conversion state described by an mbstate_t object initialized to zero
               before the first multibyte character is converted. The corresponding argument
               shall be a pointer to the initial element of an array of wchar_t large enough
               to accept the sequence and the terminating null wide character, which will be
    -          added automatically.
    - [ Matches a nonempty sequence of characters from a set of expected characters -
    -          (the scanset).252)
    +          added automatically.
    +
    [
    Matches a nonempty sequence of characters from a set of expected characters + (the scanset).252) 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. @@ -13805,28 +13756,26 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 the first following right bracket character is the one that ends the specification. If a - character is in the scanlist and is not the first, nor the second where the first character is a ^, nor the last character, the behavior is - implementation-defined.
    - p Matches an implementation-defined set of sequences, which should be the + implementation-defined. +
    p
    Matches an implementation-defined set of sequences, which should be the -
               same as the set of sequences that may be produced by the %p conversion of
               the fprintf function. The corresponding argument shall be a pointer to a
               pointer to void. The input item is converted to a pointer value in an
               implementation-defined manner. If the input item is a value converted earlier
               during the same program execution, the pointer that results shall compare
    -          equal to that value; otherwise the behavior of the %p conversion is undefined.
    - n No input is consumed. The corresponding argument shall be a pointer to -
    +          equal to that value; otherwise the behavior of the %p conversion is undefined.
    +
    n
    No input is consumed. The corresponding argument shall be a pointer to signed integer into which is to be written the number of characters read from the input stream so far by this call to the fscanf function. Execution of a %n directive does not increment the assignment count returned at the completion of execution of the fscanf function. No argument is converted, but one is consumed. If the conversion specification includes an assignment- - suppressing character or a field width, the behavior is undefined.
    - % Matches a single % character; no conversion or assignment occurs. The + suppressing character or a field width, the behavior is undefined. +
    %
    Matches a single % character; no conversion or assignment occurs. The + complete conversion specification shall be %%. +

    -

    -                complete conversion specification shall be %%.
    If a conversion specification is invalid, the behavior is undefined.253)

    The conversion specifiers A, E, F, G, and X are also valid and behave the same as, @@ -14134,7 +14083,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.254) + va_end macro.254)

    Returns

    The vfscanf function returns the value of the macro EOF if an input failure occurs @@ -14155,7 +14104,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 The vprintf function is equivalent to printf, 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 vprintf function does not invoke the - va_end macro.254) + va_end macro.254)

    Returns

    The vprintf function returns the number of characters transmitted, or a negative value @@ -14175,7 +14124,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.254) + macro.254)

    Returns

    The vscanf function returns the value of the macro EOF if an input failure occurs @@ -14197,7 +14146,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.254) If copying takes place between objects that overlap, the behavior is + va_end macro.254) If copying takes place between objects that overlap, the behavior is undefined.

    Returns

    @@ -14221,7 +14170,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.254) If copying takes place between objects that overlap, the behavior is + va_end macro.254) If copying takes place between objects that overlap, the behavior is undefined.

    Returns

    @@ -14242,7 +14191,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.254) + va_end macro.254)

    Returns

    The vsscanf function returns the value of the macro EOF if an input failure occurs @@ -14834,7 +14783,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

  • a 0x or 0X, then a nonempty sequence of hexadecimal digits optionally containing a decimal-point character, then an optional binary exponent part as defined in 6.4.4.2;
  • INF or INFINITY, ignoring case -
  • NAN or NAN(n-char-sequenceopt), ignoring case in the NAN part, where: +
  • NAN or NAN(n-char-sequenceopt), ignoring case in the NAN part, where:
               n-char-sequence:
                      digit
    @@ -14857,7 +14806,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      the subject sequence begins with a minus sign, the sequence is interpreted as negated.258)
      A character sequence INF or INFINITY is interpreted as an infinity, if representable in
      the return type, else like a floating constant that is too large for the range of the return
    - type. A character sequence NAN or NAN(n-char-sequenceopt), is interpreted as a quiet
    + type. A character sequence NAN or NAN(n-char-sequenceopt), is interpreted as a quiet
      NaN, if supported in the return type, else like a subject sequence part that does not have
      the expected form; the meaning of the n-char sequences is implementation-defined.259) A
      pointer to the final string is stored in the object pointed to by endptr, provided that
    @@ -14872,7 +14821,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      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 @@ -15006,7 +14955,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    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. @@ -15167,7 +15116,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    The atexit function registers the function pointed to by func, to be called without arguments at normal program termination. - Environmental limits +

    Environmental limits

    The implementation shall support the registration of at least 32 functions.

    Returns
    @@ -15587,7 +15536,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.267) + any.267)

    7.21 String handling

    @@ -16104,6 +16053,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007
              <math.h>          <complex.h>           type-generic
               function            function              macro
    +
                acos               cacos                acos
                asin               casin                asin
                atan               catan                atan
    @@ -16163,7 +16113,8 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      functions invoked by use of type-generic macros are shown in the following table:
     
     
    -                  macro use                                  invokes
    +                macro use                                  invokes
    +
                  exp(n)                              exp(n), the function
                  acosh(f)                            acoshf(f)
                  sin(d)                              sin(d), the function
    @@ -16388,9 +16339,9 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
     
             Sun Sep 16 01:03:52 1973\n\0
    using the equivalent of the following algorithm. +
      char *asctime(const struct tm *timeptr)
      {
    -
           static const char wday_name[7][3] = {
                "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
           };
    @@ -16405,8 +16356,9 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                  timeptr->tm_mday, timeptr->tm_hour,
                  timeptr->tm_min, timeptr->tm_sec,
                  1900 + timeptr->tm_year);
    -        return result;
    + return result; } +
    Returns

    The asctime function returns a pointer to the string. @@ -16487,125 +16439,102 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 of the current locale and by the values of zero or more members of the broken-down time structure pointed to by timeptr, as specified in brackets in the description. If any of the specified values is outside the normal range, the characters stored are unspecified. - %a is replaced by the locale's abbreviated weekday name. [tm_wday] - %A is replaced by the locale's full weekday name. [tm_wday] - %b is replaced by the locale's abbreviated month name. [tm_mon] - %B is replaced by the locale's full month name. [tm_mon] - %c is replaced by the locale's appropriate date and time representation. [all specified -

    -       in 7.23.1]
    - %C is replaced by the year divided by 100 and truncated to an integer, as a decimal -
    -       number (00-99). [tm_year]
    - %d is replaced by the day of the month as a decimal number (01-31). [tm_mday] - %D is equivalent to ''%m/%d/%y''. [tm_mon, tm_mday, tm_year] - %e is replaced by the day of the month as a decimal number (1-31); a single digit is -
    -       preceded by a space. [tm_mday]
    - %F is equivalent to ''%Y-%m-%d'' (the ISO 8601 date format). [tm_year, tm_mon, -
    -       tm_mday]
    - %g is replaced by the last 2 digits of the week-based year (see below) as a decimal -
    -       number (00-99). [tm_year, tm_wday, tm_yday]
    - %G is replaced by the week-based year (see below) as a decimal number (e.g., 1997). -
    -       [tm_year, tm_wday, tm_yday]
    - %h is equivalent to ''%b''. [tm_mon] - %H is replaced by the hour (24-hour clock) as a decimal number (00-23). [tm_hour] - %I is replaced by the hour (12-hour clock) as a decimal number (01-12). [tm_hour] - %j is replaced by the day of the year as a decimal number (001-366). [tm_yday] - %m is replaced by the month as a decimal number (01-12). [tm_mon] - %M is replaced by the minute as a decimal number (00-59). [tm_min] - %n is replaced by a new-line character. - %p is replaced by the locale's equivalent of the AM/PM designations associated with a -
    -       12-hour clock. [tm_hour]
    - %r is replaced by the locale's 12-hour clock time. [tm_hour, tm_min, tm_sec] - %R is equivalent to ''%H:%M''. [tm_hour, tm_min] - %S is replaced by the second as a decimal number (00-60). [tm_sec] - %t is replaced by a horizontal-tab character. - %T is equivalent to ''%H:%M:%S'' (the ISO 8601 time format). [tm_hour, tm_min, +
    +
    %a
    is replaced by the locale's abbreviated weekday name. [tm_wday] +
    %A
    is replaced by the locale's full weekday name. [tm_wday] +
    %b
    is replaced by the locale's abbreviated month name. [tm_mon] +
    %B
    is replaced by the locale's full month name. [tm_mon] +
    %c
    is replaced by the locale's appropriate date and time representation. [all specified + in 7.23.1] +
    %C
    is replaced by the year divided by 100 and truncated to an integer, as a decimal + number (00-99). [tm_year] +
    %d
    is replaced by the day of the month as a decimal number (01-31). [tm_mday] +
    %D
    is equivalent to ''%m/%d/%y''. [tm_mon, tm_mday, tm_year] +
    %e
    is replaced by the day of the month as a decimal number (1-31); a single digit is + preceded by a space. [tm_mday] +
    %F
    is equivalent to ''%Y-%m-%d'' (the ISO 8601 date format). [tm_year, tm_mon, + tm_mday] +
    %g
    is replaced by the last 2 digits of the week-based year (see below) as a decimal + number (00-99). [tm_year, tm_wday, tm_yday] +
    %G
    is replaced by the week-based year (see below) as a decimal number (e.g., 1997). + [tm_year, tm_wday, tm_yday] +
    %h
    is equivalent to ''%b''. [tm_mon] +
    %H
    is replaced by the hour (24-hour clock) as a decimal number (00-23). [tm_hour] +
    %I
    is replaced by the hour (12-hour clock) as a decimal number (01-12). [tm_hour] +
    %j
    is replaced by the day of the year as a decimal number (001-366). [tm_yday] +
    %m
    is replaced by the month as a decimal number (01-12). [tm_mon] +
    %M
    is replaced by the minute as a decimal number (00-59). [tm_min] +
    %n
    is replaced by a new-line character. +
    %p
    is replaced by the locale's equivalent of the AM/PM designations associated with a + 12-hour clock. [tm_hour] +
    %r
    is replaced by the locale's 12-hour clock time. [tm_hour, tm_min, tm_sec] +
    %R
    is equivalent to ''%H:%M''. [tm_hour, tm_min] +
    %S
    is replaced by the second as a decimal number (00-60). [tm_sec] +
    %t
    is replaced by a horizontal-tab character. +
    %T
    is equivalent to ''%H:%M:%S'' (the ISO 8601 time format). [tm_hour, tm_min, -
    -       tm_sec]
    - %u is replaced by the ISO 8601 weekday as a decimal number (1-7), where Monday -
    -      is 1. [tm_wday]
    - %U is replaced by the week number of the year (the first Sunday as the first day of week -
    -      1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]
    - %V is replaced by the ISO 8601 week number (see below) as a decimal number -
    -      (01-53). [tm_year, tm_wday, tm_yday]
    - %w is replaced by the weekday as a decimal number (0-6), where Sunday is 0. -
    -      [tm_wday]
    - %W is replaced by the week number of the year (the first Monday as the first day of -
    -      week 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday]
    - %x is replaced by the locale's appropriate date representation. [all specified in 7.23.1] - %X is replaced by the locale's appropriate time representation. [all specified in 7.23.1] - %y is replaced by the last 2 digits of the year as a decimal number (00-99). -
    -      [tm_year]
    - %Y is replaced by the year as a decimal number (e.g., 1997). [tm_year] - %z is replaced by the offset from UTC in the ISO 8601 format ''-0430'' (meaning 4 -
    +       tm_sec]
    +
    %u
    is replaced by the ISO 8601 weekday as a decimal number (1-7), where Monday + is 1. [tm_wday] +
    %U
    is replaced by the week number of the year (the first Sunday as the first day of week + 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday] +
    %V
    is replaced by the ISO 8601 week number (see below) as a decimal number + (01-53). [tm_year, tm_wday, tm_yday] +
    %w
    is replaced by the weekday as a decimal number (0-6), where Sunday is 0. + [tm_wday] +
    %W
    is replaced by the week number of the year (the first Monday as the first day of + week 1) as a decimal number (00-53). [tm_year, tm_wday, tm_yday] +
    %x
    is replaced by the locale's appropriate date representation. [all specified in 7.23.1] +
    %X
    is replaced by the locale's appropriate time representation. [all specified in 7.23.1] +
    %y
    is replaced by the last 2 digits of the year as a decimal number (00-99). + [tm_year] +
    %Y
    is replaced by the year as a decimal number (e.g., 1997). [tm_year] +
    %z
    is replaced by the offset from UTC in the ISO 8601 format ''-0430'' (meaning 4 hours 30 minutes behind UTC, west of Greenwich), or by no characters if no time - zone is determinable. [tm_isdst]
    - %Z is replaced by the locale's time zone name or abbreviation, or by no characters if no -
    -      time zone is determinable. [tm_isdst]
    - %% is replaced by %. + zone is determinable. [tm_isdst] +
    %Z
    is replaced by the locale's time zone name or abbreviation, or by no characters if no + time zone is determinable. [tm_isdst] +
    %%
    is replaced by %. +

    Some conversion specifiers can be modified by the inclusion of an E or O modifier character to indicate an alternative format or specification. If the alternative format or specification does not exist for the current locale, the modifier is ignored. - %Ec is replaced by the locale's alternative date and time representation. - %EC is replaced by the name of the base year (period) in the locale's alternative -

    -     representation.
    - %Ex is replaced by the locale's alternative date representation. - %EX is replaced by the locale's alternative time representation. - %Ey is replaced by the offset from %EC (year only) in the locale's alternative -
    -     representation.
    - %EY is replaced by the locale's full alternative year representation. - %Od is replaced by the day of the month, using the locale's alternative numeric symbols -
    +
    +
    %Ec
    is replaced by the locale's alternative date and time representation. +
    %EC
    is replaced by the name of the base year (period) in the locale's alternative + representation. +
    %Ex
    is replaced by the locale's alternative date representation. +
    %EX
    is replaced by the locale's alternative time representation. +
    %Ey
    is replaced by the offset from %EC (year only) in the locale's alternative + representation. +
    %EY
    is replaced by the locale's full alternative year representation. +
    %Od
    is replaced by the day of the month, using the locale's alternative numeric symbols (filled as needed with leading zeros, or with leading spaces if there is no alternative - symbol for zero).
    - %Oe is replaced by the day of the month, using the locale's alternative numeric symbols -
    -     (filled as needed with leading spaces).
    - %OH is replaced by the hour (24-hour clock), using the locale's alternative numeric + symbol for zero). +
    %Oe
    is replaced by the day of the month, using the locale's alternative numeric symbols + (filled as needed with leading spaces). +
    %OH
    is replaced by the hour (24-hour clock), using the locale's alternative numeric -
    -     symbols.
    - %OI is replaced by the hour (12-hour clock), using the locale's alternative numeric -
    -     symbols.
    - %Om is replaced by the month, using the locale's alternative numeric symbols. - %OM is replaced by the minutes, using the locale's alternative numeric symbols. - %OS is replaced by the seconds, using the locale's alternative numeric symbols. - %Ou is replaced by the ISO 8601 weekday as a number in the locale's alternative -
    -     representation, where Monday is 1.
    - %OU is replaced by the week number, using the locale's alternative numeric symbols. - %OV is replaced by the ISO 8601 week number, using the locale's alternative numeric -
    -     symbols.
    - %Ow is replaced by the weekday as a number, using the locale's alternative numeric -
    -     symbols.
    - %OW is replaced by the week number of the year, using the locale's alternative numeric -
    -     symbols.
    - %Oy is replaced by the last 2 digits of the year, using the locale's alternative numeric + symbols. +
    %OI
    is replaced by the hour (12-hour clock), using the locale's alternative numeric + symbols. +
    %Om
    is replaced by the month, using the locale's alternative numeric symbols. +
    %OM
    is replaced by the minutes, using the locale's alternative numeric symbols. +
    %OS
    is replaced by the seconds, using the locale's alternative numeric symbols. +
    %Ou
    is replaced by the ISO 8601 weekday as a number in the locale's alternative + representation, where Monday is 1. +
    %OU
    is replaced by the week number, using the locale's alternative numeric symbols. +
    %OV
    is replaced by the ISO 8601 week number, using the locale's alternative numeric + symbols. +
    %Ow
    is replaced by the weekday as a number, using the locale's alternative numeric + symbols. +
    %OW
    is replaced by the week number of the year, using the locale's alternative numeric + symbols. +
    %Oy
    is replaced by the last 2 digits of the year, using the locale's alternative numeric + symbols. +

    -

    -     symbols.
    %g, %G, and %V give values according to the ISO 8601 week-based year. In this system, weeks begin on a Monday and week 1 of the year is the week that includes January 4th, which is also the week that includes the first Thursday of the year, and is also the first @@ -16620,16 +16549,18 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    In the "C" locale, the E and O modifiers are ignored and the replacement strings for the following specifiers are: - %a the first three characters of %A. - %A one of ''Sunday'', ''Monday'', ... , ''Saturday''. - %b the first three characters of %B. - %B one of ''January'', ''February'', ... , ''December''. - %c equivalent to ''%a %b %e %T %Y''. - %p one of ''AM'' or ''PM''. - %r equivalent to ''%I:%M:%S %p''. - %x equivalent to ''%m/%d/%y''. - %X equivalent to %T. - %Z implementation-defined. +

    +
    %a
    the first three characters of %A. +
    %A
    one of ''Sunday'', ''Monday'', ... , ''Saturday''. +
    %b
    the first three characters of %B. +
    %B
    one of ''January'', ''February'', ... , ''December''. +
    %c
    equivalent to ''%a %b %e %T %Y''. +
    %p
    one of ''AM'' or ''PM''. +
    %r
    equivalent to ''%I:%M:%S %p''. +
    %x
    equivalent to ''%m/%d/%y''. +
    %X
    equivalent to %T. +
    %Z
    implementation-defined. +
    Returns

    @@ -16764,105 +16695,93 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 precision were omitted.

    The flag wide characters and their meanings are: - - The result of the conversion is left-justified within the field. (It is right-justified if -

    -          this flag is not specified.)
    - + The result of a signed conversion always begins with a plus or minus sign. (It -
    +
    +
    -
    The result of the conversion is left-justified within the field. (It is right-justified if + this flag is not specified.) +
    +
    The result of a signed conversion always begins with a plus or minus sign. (It begins with a sign only when a negative value is converted if this flag is not - specified.)282)
    - space If the first wide character of a signed conversion is not a sign, or if a signed -
    +          specified.)282)
    +
    space
    If the first wide character of a signed conversion is not a sign, or if a signed conversion results in no wide characters, a space is prefixed to the result. If the - space and + flags both appear, the space flag is ignored.
    - # The result is converted to an ''alternative form''. For o conversion, it increases -
    +       space and + flags both appear, the space flag is ignored.
    +
    #
    The result is converted to an ''alternative form''. For o conversion, it increases the precision, if and only if necessary, to force the first digit of the result to be a zero (if the value and precision are both 0, a single 0 is printed). For x (or X) - conversion, a nonzero result has 0x (or 0X) prefixed to it. For a, A, e, E, f, F, g,
    + conversion, a nonzero result has 0x (or 0X) prefixed to it. For a, A, e, E, f, F, g, -
                and G conversions, the result of converting a floating-point number always
                contains a decimal-point wide character, even if no digits follow it. (Normally, a
                decimal-point wide character appears in the result of these conversions only if a
                digit follows it.) For g and G conversions, trailing zeros are not removed from the
    -           result. For other conversions, the behavior is undefined.
    - 0 For d, i, o, u, x, X, a, A, e, E, f, F, g, and G conversions, leading zeros -

    -

    +           result. For other conversions, the behavior is undefined.
    +
    0
    For d, i, o, u, x, X, a, A, e, E, f, F, g, and G conversions, leading zeros (following any indication of sign or base) are used to pad to the field width rather than performing space padding, except when converting an infinity or NaN. If the 0 and - flags both appear, the 0 flag is ignored. For d, i, o, u, x, and X conversions, if a precision is specified, the 0 flag is ignored. For other - conversions, the behavior is undefined.
    + conversions, the behavior is undefined. + +

    The length modifiers and their meanings are: - hh Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -

    +
    +
    hh
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a signed char or unsigned char argument (the argument will have been promoted according to the integer promotions, but its value shall be converted to signed char or unsigned char before printing); or that a following n conversion specifier applies to a pointer to a signed char - argument.
    - h Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
    +                argument.
    +
    h
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a short int or unsigned short int argument (the argument will have been promoted according to the integer promotions, but its value shall be converted to short int or unsigned short int before printing); or that a following n conversion specifier applies to a pointer to a short - int argument.
    - l (ell) Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
    +                int argument.
    +
    l (ell)
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a long int or unsigned long int argument; that a following n conversion specifier applies to a pointer to a long int argument; that a following c conversion specifier applies to a wint_t argument; that a following s conversion specifier applies to a pointer to a wchar_t argument; or has no effect on a following a, A, e, E, f, F, g, or G conversion - specifier.
    - ll (ell-ell) Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
    +                specifier.
    +
    ll (ell-ell)
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a long long int or unsigned long long int argument; or that a following n conversion specifier applies to a pointer to a long long int - argument.
    - j Specifies that a following d, i, o, u, x, or X conversion specifier applies to + argument. +
    j
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to -
                     an intmax_t or uintmax_t argument; or that a following n conversion
    -                specifier applies to a pointer to an intmax_t argument.
    - z Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
    +                specifier applies to a pointer to an intmax_t argument.
    +
    z
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a size_t or the corresponding signed integer type argument; or that a following n conversion specifier applies to a pointer to a signed integer type - corresponding to size_t argument.
    - t Specifies that a following d, i, o, u, x, or X conversion specifier applies to a -
    +             corresponding to size_t argument.
    +
    t
    Specifies that a following d, i, o, u, x, or X conversion specifier applies to a ptrdiff_t or the corresponding unsigned integer type argument; or that a following n conversion specifier applies to a pointer to a ptrdiff_t - argument.
    - L Specifies that a following a, A, e, E, f, F, g, or G conversion specifier -
    -             applies to a long double argument.
    + argument. +
    L
    Specifies that a following a, A, e, E, f, F, g, or G conversion specifier + applies to a long double argument. + If a length modifier appears with any conversion specifier other than as specified above, the behavior is undefined.

    The conversion specifiers and their meanings are: - d,i The int argument is converted to signed decimal in the style [-]dddd. The -

    +
    +
    d,i
    The int argument is converted to signed decimal in the style [-]dddd. The precision specifies the minimum number of digits to appear; if the value being converted can be represented in fewer digits, it is expanded with leading zeros. The default precision is 1. The result of converting a zero - value with a precision of zero is no wide characters.
    - o,u,x,X The unsigned int argument is converted to unsigned octal (o), unsigned -
    +            value with a precision of zero is no wide characters.
    +
    o,u,x,X
    The unsigned int argument is converted to unsigned octal (o), unsigned decimal (u), or unsigned hexadecimal notation (x or X) in the style dddd; the letters abcdef are used for x conversion and the letters ABCDEF for X conversion. The precision specifies the minimum number of digits to appear; if the value being converted can be represented in fewer digits, it is expanded with leading zeros. The default precision is 1. The result of converting a - zero value with a precision of zero is no wide characters.
    - f,F A double argument representing a floating-point number is converted to + zero value with a precision of zero is no wide characters. +
    f,F
    A double argument representing a floating-point number is converted to -
                 decimal notation in the style [-]ddd.ddd, where the number of digits after
                 the decimal-point wide character is equal to the precision specification. If the
                 precision is missing, it is taken as 6; if the precision is zero and the # flag is
    @@ -16875,9 +16794,8 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                 [-]nan or [-]nan(n-wchar-sequence) -- which style, and the meaning of
                 any n-wchar-sequence, is implementation-defined. The F conversion
                 specifier produces INF, INFINITY, or NAN instead of inf, infinity, or
    -              nan, respectively.283)
    - e,E A double argument representing a floating-point number is converted in the -
    +              nan, respectively.283)
    +
    e,E
    A double argument representing a floating-point number is converted in the style [-]d.ddd e(+-)dd, where there is one digit (which is nonzero if the argument is nonzero) before the decimal-point wide character and the number of digits after it is equal to the precision; if the precision is missing, it is taken @@ -16888,32 +16806,29 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 and only as many more digits as necessary to represent the exponent. If the value is zero, the exponent is zero. A double argument representing an infinity or NaN is converted in the style - of an f or F conversion specifier.
    - g,G A double argument representing a floating-point number is converted in -
    +              of an f or F conversion specifier.
    +
    g,G
    A double argument representing a floating-point number is converted in style f or e (or in style F or E in the case of a G conversion specifier), depending on the value converted and the precision. Let P equal the precision if nonzero, 6 if the precision is omitted, or 1 if the precision is zero. Then, if a conversion with style E would have an exponent of X : - -- if P > X >= -4, the conversion is with style f (or F) and precision +
      +
    • if P > X >= -4, the conversion is with style f (or F) and precision P - (X + 1). - -- otherwise, the conversion is with style e (or E) and precision P - 1. +
    • otherwise, the conversion is with style e (or E) and precision P - 1. +
    Finally, unless the # flag is used, any trailing zeros are removed from the fractional portion of the result and the decimal-point wide character is removed if there is no fractional portion remaining. A double argument representing an infinity or NaN is converted in the style - of an f or F conversion specifier.
    - a,A A double argument representing a floating-point number is converted in the -
    +              of an f or F conversion specifier.
    +
    a,A
    A double argument representing a floating-point number is converted in the style [-]0xh.hhhh p(+-)d, where there is one hexadecimal digit (which is nonzero if the argument is a normalized floating-point number and is otherwise unspecified) before the decimal-point wide character284) and the number of hexadecimal digits after it is equal to the precision; if the precision - is missing and FLT_RADIX is a power of 2, then the precision is sufficient
    - - + is missing and FLT_RADIX is a power of 2, then the precision is sufficient -
                   for an exact representation of the value; if the precision is missing and
                   FLT_RADIX is not a power of 2, then the precision is sufficient to
                   distinguish285) values of type double, except that trailing zeros may be
    @@ -16925,14 +16840,12 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                   represent the decimal exponent of 2. If the value is zero, the exponent is
                   zero.
                   A double argument representing an infinity or NaN is converted in the style
    -              of an f or F conversion specifier.
    - c If no l length modifier is present, the int argument is converted to a wide -
    +              of an f or F conversion specifier.
    +
    c
    If no l length modifier is present, the int argument is converted to a wide character as if by calling btowc and the resulting wide character is written. If an l length modifier is present, the wint_t argument is converted to - wchar_t and written.
    - s If no l length modifier is present, the argument shall be a pointer to the initial -
    +              wchar_t and written.
    +
    s
    If no l length modifier is present, the argument shall be a pointer to the initial element of a character array containing a multibyte character sequence beginning in the initial shift state. Characters from the array are converted as if by repeated calls to the mbrtowc function, with the conversion state @@ -16947,24 +16860,20 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 written up to (but not including) a terminating null wide character. If the precision is specified, no more than that many wide characters are written. If the precision is not specified or is greater than the size of the array, the array - shall contain a null wide character.
    - p The argument shall be a pointer to void. The value of the pointer is -
    -              converted to a sequence of printing wide characters, in an implementation-
    - + shall contain a null wide character. +
    p
    The argument shall be a pointer to void. The value of the pointer is + converted to a sequence of printing wide characters, in an implementation- -
    -                defined manner.
    - n The argument shall be a pointer to signed integer into which is written the -
    +                defined manner.
    +
    n
    The argument shall be a pointer to signed integer into which is written the number of wide characters written to the output stream so far by this call to fwprintf. No argument is converted, but one is consumed. If the conversion specification includes any flags, a field width, or a precision, the - behavior is undefined.
    - % A % wide character is written. No argument is converted. The complete + behavior is undefined. +
    %
    A % wide character is written. No argument is converted. The complete + conversion specification shall be %%. +

    -

    -                conversion specification shall be %%.
    If a conversion specification is invalid, the behavior is undefined.286) If any argument is not the correct type for the corresponding conversion specification, the behavior is undefined. @@ -16975,7 +16884,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    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 @@ -16996,7 +16905,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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. @@ -17029,7 +16938,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    284) Binary implementations can choose the hexadecimal digit to the left of the decimal-point wide character so that subsequent digits align to nibble (4-bit) boundaries. -

    285) The precision p is sufficient to distinguish values of the source type if 16 p-1 > b n where b is +

    285) The precision p is sufficient to distinguish values of the source type if 16p-1 > b n where b is FLT_RADIX and n is the number of base-b digits in the significand of the source type. A smaller p might suffice depending on the implementation's scheme for determining the digit to the left of the decimal-point wide character. @@ -17116,73 +17025,61 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 represented in the object, the behavior is undefined.

    The length modifiers and their meanings are: - hh Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -

    -             to an argument with type pointer to signed char or unsigned char.
    - h Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +
    +
    hh
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies + to an argument with type pointer to signed char or unsigned char. +
    h
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to short int or unsigned short - int.
    - l (ell) Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +             int.
    +
    l (ell)
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to long int or unsigned long int; that a following a, A, e, E, f, F, g, or G conversion specifier applies to an argument with type pointer to double; or that a following c, s, or [ - conversion specifier applies to an argument with type pointer to wchar_t.
    - ll (ell-ell) Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +             conversion specifier applies to an argument with type pointer to wchar_t.
    +
    ll (ell-ell)
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to long long int or unsigned - long long int.
    - j Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    -             to an argument with type pointer to intmax_t or uintmax_t.
    - z Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +              long long int.
    +
    j
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies + to an argument with type pointer to intmax_t or uintmax_t. +
    z
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to size_t or the corresponding signed - integer type.
    - t Specifies that a following d, i, o, u, x, X, or n conversion specifier applies -
    +             integer type.
    +
    t
    Specifies that a following d, i, o, u, x, X, or n conversion specifier applies to an argument with type pointer to ptrdiff_t or the corresponding - unsigned integer type.
    - L Specifies that a following a, A, e, E, f, F, g, or G conversion specifier -
    -             applies to an argument with type pointer to long double.
    + unsigned integer type. +
    L
    Specifies that a following a, A, e, E, f, F, g, or G conversion specifier + applies to an argument with type pointer to long double. + If a length modifier appears with any conversion specifier other than as specified above, the behavior is undefined.

    The conversion specifiers and their meanings are: - d Matches an optionally signed decimal integer, whose format is the same as -

    +
    +
    d
    Matches an optionally signed decimal integer, whose format is the same as expected for the subject sequence of the wcstol function with the value 10 for the base argument. The corresponding argument shall be a pointer to - signed integer.
    - i Matches an optionally signed integer, whose format is the same as expected + signed integer. +
    i
    Matches an optionally signed integer, whose format is the same as expected -
                 for the subject sequence of the wcstol function with the value 0 for the
                 base argument. The corresponding argument shall be a pointer to signed
    -             integer.
    - o Matches an optionally signed octal integer, whose format is the same as -
    +             integer.
    +
    o
    Matches an optionally signed octal integer, whose format is the same as expected for the subject sequence of the wcstoul function with the value 8 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - u Matches an optionally signed decimal integer, whose format is the same as -
    +             unsigned integer.
    +
    u
    Matches an optionally signed decimal integer, whose format is the same as expected for the subject sequence of the wcstoul function with the value 10 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - x Matches an optionally signed hexadecimal integer, whose format is the same -
    +             unsigned integer.
    +
    x
    Matches an optionally signed hexadecimal integer, whose format is the same as expected for the subject sequence of the wcstoul function with the value 16 for the base argument. The corresponding argument shall be a pointer to - unsigned integer.
    - a,e,f,g Matches an optionally signed floating-point number, infinity, or NaN, whose -
    +             unsigned integer.
    +
    a,e,f,g
    Matches an optionally signed floating-point number, infinity, or NaN, whose format is the same as expected for the subject sequence of the wcstod - function. The corresponding argument shall be a pointer to floating.
    - c Matches a sequence of wide characters of exactly the number specified by the -
    +         function. The corresponding argument shall be a pointer to floating.
    +
    c
    Matches a sequence of wide characters of exactly the number specified by the field width (1 if no field width is present in the directive). If no l length modifier is present, characters from the input field are converted as if by repeated calls to the wcrtomb function, with the @@ -17192,10 +17089,9 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 accept the sequence. No null character is added. If an l length modifier is present, the corresponding argument shall be a pointer to the initial element of an array of wchar_t large enough to accept - the sequence. No null wide character is added.
    - s Matches a sequence of non-white-space wide characters. + the sequence. No null wide character is added. +
    s
    Matches a sequence of non-white-space wide characters. -
                  If no l length modifier is present, characters from the input field are
                  converted as if by repeated calls to the wcrtomb function, with the
                  conversion state described by an mbstate_t object initialized to zero
    @@ -17206,9 +17102,8 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
                  If an l length modifier is present, the corresponding argument shall be a
                  pointer to the initial element of an array of wchar_t large enough to accept
               the sequence and the terminating null wide character, which will be added
    -          automatically.
    - [ Matches a nonempty sequence of wide characters from a set of expected -
    +          automatically.
    +
    [
    Matches a nonempty sequence of wide characters from a set of expected characters (the scanset). If no l length modifier is present, characters from the input field are converted as if by repeated calls to the wcrtomb function, with the @@ -17232,29 +17127,27 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 the specification; otherwise the first following right bracket wide character is the one that ends the specification. If a - wide character is in the scanlist and is not the first, nor the second where the first wide character is a ^, nor the - last character, the behavior is implementation-defined.
    - p Matches an implementation-defined set of sequences, which should be the -
    +          last character, the behavior is implementation-defined.
    +
    p
    Matches an implementation-defined set of sequences, which should be the same as the set of sequences that may be produced by the %p conversion of the fwprintf function. The corresponding argument shall be a pointer to a pointer to void. The input item is converted to a pointer value in an implementation-defined manner. If the input item is a value converted earlier during the same program execution, the pointer that results shall compare - equal to that value; otherwise the behavior of the %p conversion is undefined.
    - n No input is consumed. The corresponding argument shall be a pointer to + equal to that value; otherwise the behavior of the %p conversion is undefined. +
    n
    No input is consumed. The corresponding argument shall be a pointer to -
               signed integer into which is to be written the number of wide characters read
               from the input stream so far by this call to the fwscanf function. Execution
               of a %n directive does not increment the assignment count returned at the
               completion of execution of the fwscanf function. No argument is
                     converted, but one is consumed. If the conversion specification includes an
                     assignment-suppressing wide character or a field width, the behavior is
    -                undefined.
    - % Matches a single % wide character; no conversion or assignment occurs. The + undefined. +
    %
    Matches a single % wide character; no conversion or assignment occurs. The + complete conversion specification shall be %%. +

    -

    -                complete conversion specification shall be %%.
    If a conversion specification is invalid, the behavior is undefined.290)

    The conversion specifiers A, E, F, G, and X are also valid and behave the same as, @@ -17416,7 +17309,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.291) + va_end macro.291)

    Returns

    The vfwscanf function returns the value of the macro EOF if an input failure occurs @@ -17439,7 +17332,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.291) + va_end macro.291)

    Returns

    The vswprintf function returns the number of wide characters written in the array, not @@ -17461,7 +17354,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.291) + va_end macro.291)

    Returns

    The vswscanf function returns the value of the macro EOF if an input failure occurs @@ -17482,7 +17375,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.291) + va_end macro.291)

    Returns

    The vwprintf function returns the number of wide characters transmitted, or a negative @@ -17502,7 +17395,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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.291) + va_end macro.291)

    Returns

    The vwscanf function returns the value of the macro EOF if an input failure occurs @@ -17810,7 +17703,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 decimal-point wide character, then an optional binary exponent part as defined in 6.4.4.2;

  • INF or INFINITY, or any other wide string equivalent except for case -
  • NAN or NAN(n-wchar-sequenceopt), or any other wide string equivalent except for +
  • NAN or NAN(n-wchar-sequenceopt), or any other wide string equivalent except for case in the NAN part, where:
               n-wchar-sequence:
    @@ -17836,7 +17729,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      sign, the sequence is interpreted as negated.294) A wide character sequence INF or
      INFINITY is interpreted as an infinity, if representable in the return type, else like a
      floating constant that is too large for the range of the return type. A wide character
    - sequence NAN or NAN(n-wchar-sequenceopt) is interpreted as a quiet NaN, if supported
    + sequence NAN or NAN(n-wchar-sequenceopt) is interpreted as a quiet NaN, if supported
      in the return type, else like a subject sequence part that does not have the expected form;
      the meaning of the n-wchar sequences is implementation-defined.295) A pointer to the
      final wide string is stored in the object pointed to by endptr, provided that endptr is
    @@ -17851,7 +17744,7 @@ WG14/N1256                Committee Draft -- Septermber 7, 2007
      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 @@ -18594,23 +18487,20 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

    The mbrtowc function returns the first of the following that applies (given the current conversion state): - 0 if the next n or fewer bytes complete the multibyte character that -

    -                       corresponds to the null wide character (which is the value stored).
    - between 1 and n inclusive if the next n or fewer bytes complete a valid multibyte -
    +
    +
    0
    if the next n or fewer bytes complete the multibyte character that + corresponds to the null wide character (which is the value stored). +
    between 1 and n inclusive
    if the next n or fewer bytes complete a valid multibyte character (which is the value stored); the value returned is the number - of bytes that complete the multibyte character.
    - (size_t)(-2) if the next n bytes contribute to an incomplete (but potentially valid) -
    +                    of bytes that complete the multibyte character.
    +
    (size_t)(-2)
    if the next n bytes contribute to an incomplete (but potentially valid) multibyte character, and all n bytes have been processed (no value is - stored).300)
    - (size_t)(-1) if an encoding error occurs, in which case the next n or fewer bytes -
    +              stored).300)
    +
    (size_t)(-1)
    if an encoding error occurs, in which case the next n or fewer bytes do not contribute to a complete and valid multibyte character (no value is stored); the value of the macro EILSEQ is stored in errno, - and the conversion state is unspecified.
    - + and the conversion state is unspecified. +
    footnotes
    @@ -20813,7 +20703,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

                                         (informative)
    -                             Implementation limits
    +
    Implementation limits
    The contents of the header <limits.h> are given below, in alphabetical order. The minimum magnitudes shown shall be replaced by implementation-defined magnitudes with the same sign. The values shall all be constant expressions suitable for use in #if @@ -20924,7 +20814,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 Any non-IEC 60559 extended format used for the long double type shall have more precision than IEC 60559 double and at least the range of IEC 60559 double.308) - Recommended practice +
    Recommended practice

    The long double type should match an IEC 60559 extended format. @@ -21079,7 +20969,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 A contracted expression 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 +

    Recommended practice

    A contracted expression should raise floating-point exceptions in a manner generally consistent with the basic arithmetic operations. A contracted expression should deliver @@ -21118,7 +21008,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007

  • The rounding precision mode (if supported) is set so that results are not shortened.
  • Trapping or stopping (if supported) is disabled on all floating-point exceptions. - Recommended practice +
    Recommended practice

    The implementation should produce a diagnostic message for each translation-time @@ -21463,7 +21353,7 @@ WG14/N1256 Committee Draft -- Septermber 7, 2007 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 +

    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