Print this page
11620 strtod man page typo equence


  56 
  57            o      A 0x or 0X, then a non-empty sequence of hexadecimal digits
  58                   optionally containing a radix character, then an optional
  59                   binary exponent part
  60 
  61            o      One of INF or INFINITY, or any other wide string equivalent
  62                   except for case
  63 
  64            o      One of NAN or NAN(n-wchar-sequence(opt)), or any other wide
  65                   string ignoring case in the NAN part, where:
  66 
  67                     n-wchar-sequence:
  68                         digit
  69                         nondigit
  70                         n-wchar-sequence digit
  71                         n-wchar-sequence nondigit
  72 
  73 
  74 
  75        In default mode for wcstod(), only decimal, INF/INFINITY, and
  76        NAN/NAN(n-char-sequence) forms are recognized. In C99/SUSv3 mode,
  77        hexadecimal strings are also recognized.
  78 
  79 
  80        In default mode for wcstod(), the n-char-sequence in the NAN(n-char-
  81        equence) form can contain any character except ')' (right parenthesis)
  82        or '\0' (null).  In C99/SUSv3 mode, the n-char-sequence can contain
  83        only upper and lower case letters, digits, and '_' (underscore).
  84 
  85 
  86        The wcstof() and wcstold() functions always function in
  87        C99/SUSv3-conformant mode.
  88 
  89 
  90        The subject sequence is defined as the longest initial subsequence of
  91        the input wide string, starting with the first non-white-space wide
  92        character, that is of the expected form. The subject sequence contains
  93        no wide characters if the input wide string is not of the expected
  94        form.
  95 
  96 
  97        If the subject sequence has the expected form for a floating-point
  98        number, the sequence of wide characters starting with the first digit
  99        or the radix character (whichever occurs first) is interpreted as a
 100        floating constant according to the rules of the C language, except that
 101        the radix character is used in place of a period, and that if neither
 102        an exponent part nor a radix character appears in a decimal floating-


 178        See attributes(5) for descriptions of the following attributes:
 179 
 180 
 181 
 182 
 183        +--------------------+-------------------------+
 184        |ATTRIBUTE TYPE      | ATTRIBUTE VALUE         |
 185        +--------------------+-------------------------+
 186        |Interface Stability | wcstod(), wcstof(), and |
 187        |                    | wcstold() are Standard. |
 188        +--------------------+-------------------------+
 189        |MT-Level            | MT-Safe                 |
 190        +--------------------+-------------------------+
 191 
 192 SEE ALSO
 193        iswspace(3C), localeconv(3C), scanf(3C), setlocale(3C), wcstol(3C),
 194        attributes(5), standards(5)
 195 
 196 
 197 
 198                                 March 31, 2003                      WCSTOD(3C)


  56 
  57            o      A 0x or 0X, then a non-empty sequence of hexadecimal digits
  58                   optionally containing a radix character, then an optional
  59                   binary exponent part
  60 
  61            o      One of INF or INFINITY, or any other wide string equivalent
  62                   except for case
  63 
  64            o      One of NAN or NAN(n-wchar-sequence(opt)), or any other wide
  65                   string ignoring case in the NAN part, where:
  66 
  67                     n-wchar-sequence:
  68                         digit
  69                         nondigit
  70                         n-wchar-sequence digit
  71                         n-wchar-sequence nondigit
  72 
  73 
  74 
  75        In default mode for wcstod(), only decimal, INF/INFINITY, and
  76        NAN/NAN(n-wchar-sequence) forms are recognized. In C99/SUSv3 mode,
  77        hexadecimal strings are also recognized.
  78 
  79 
  80        In default mode for wcstod(), the n-wchar-sequence in the NAN(n-wchar-
  81        sequence) form can contain any character except ')' (right parenthesis)
  82        or '\0' (null).  In C99/SUSv3 mode, the n-wchar-sequence can contain
  83        only upper and lower case letters, digits, and '_' (underscore).
  84 
  85 
  86        The wcstof() and wcstold() functions always function in
  87        C99/SUSv3-conformant mode.
  88 
  89 
  90        The subject sequence is defined as the longest initial subsequence of
  91        the input wide string, starting with the first non-white-space wide
  92        character, that is of the expected form. The subject sequence contains
  93        no wide characters if the input wide string is not of the expected
  94        form.
  95 
  96 
  97        If the subject sequence has the expected form for a floating-point
  98        number, the sequence of wide characters starting with the first digit
  99        or the radix character (whichever occurs first) is interpreted as a
 100        floating constant according to the rules of the C language, except that
 101        the radix character is used in place of a period, and that if neither
 102        an exponent part nor a radix character appears in a decimal floating-


 178        See attributes(5) for descriptions of the following attributes:
 179 
 180 
 181 
 182 
 183        +--------------------+-------------------------+
 184        |ATTRIBUTE TYPE      | ATTRIBUTE VALUE         |
 185        +--------------------+-------------------------+
 186        |Interface Stability | wcstod(), wcstof(), and |
 187        |                    | wcstold() are Standard. |
 188        +--------------------+-------------------------+
 189        |MT-Level            | MT-Safe                 |
 190        +--------------------+-------------------------+
 191 
 192 SEE ALSO
 193        iswspace(3C), localeconv(3C), scanf(3C), setlocale(3C), wcstol(3C),
 194        attributes(5), standards(5)
 195 
 196 
 197 
 198                                 August 25, 2019                     WCSTOD(3C)