about summary refs log tree commit diff
path: root/manual/arith.texi
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-10-30 16:13:07 +0000
committerUlrich Drepper <drepper@redhat.com>1999-10-30 16:13:07 +0000
commit0c34b1e9b5f8cf667dd287be2c25cd2e1a2cff7c (patch)
treeafe1088133a5a9b2fcd02aab6579a150abc7b484 /manual/arith.texi
parentaaa1276ee31ca872190cd097c7b4d845996fed39 (diff)
downloadglibc-0c34b1e9b5f8cf667dd287be2c25cd2e1a2cff7c.tar.gz
glibc-0c34b1e9b5f8cf667dd287be2c25cd2e1a2cff7c.tar.xz
glibc-0c34b1e9b5f8cf667dd287be2c25cd2e1a2cff7c.zip
Update.
1999-10-30  Ulrich Drepper  <drepper@cygnus.com>

	* manual/time.texi (Formatting Date and Time): Revise comments about
	origins of the formats with ISO C99 references.

1999-10-30  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/ifreq.h: New file.

1999-10-29  Andreas Jaeger  <aj@suse.de>

	* manual/arith.texi (Parsing of Floats): Document the hexadecimal
	input format; mention that strtof and strtold are part of ISO C99.
Diffstat (limited to 'manual/arith.texi')
-rw-r--r--manual/arith.texi26
1 files changed, 23 insertions, 3 deletions
diff --git a/manual/arith.texi b/manual/arith.texi
index 1a24beb7ca..11479d618b 100644
--- a/manual/arith.texi
+++ b/manual/arith.texi
@@ -2101,6 +2101,10 @@ are whitespace is determined by the @code{isspace} function
 @item
 An optional plus or minus sign (@samp{+} or @samp{-}).
 
+@item A floating point number in decimal or hexadecimal format.  The
+decimal format is:
+@itemize @minus
+
 @item
 A nonempty sequence of digits optionally containing a decimal-point
 character---normally @samp{.}, but it depends on the locale
@@ -2110,6 +2114,22 @@ character---normally @samp{.}, but it depends on the locale
 An optional exponent part, consisting of a character @samp{e} or
 @samp{E}, an optional sign, and a sequence of digits.
 
+@end itemize
+
+The hexadecimal format is as follows:
+@itemize @minus
+
+@item
+A 0x or 0X followed by a nonempty sequence of hexadecimal digits
+optionally containing a decimal-point character---normally @samp{.}, but
+it depends on the locale (@pxref{General Numeric}).
+
+@item
+An optional binary-exponent part, consisting of a character @samp{p} or
+@samp{P}, an optional sign, and a sequence of digits.
+
+@end itemize
+
 @item
 Any remaining characters in the string.  If @var{tailptr} is not a null
 pointer, a pointer to this tail of the string is stored in
@@ -2146,10 +2166,10 @@ examining @var{errno} and @var{tailptr}.
 @end deftypefun
 
 @comment stdlib.h
-@comment GNU
+@comment ISO C
 @deftypefun float strtof (const char *@var{string}, char **@var{tailptr})
 @comment stdlib.h
-@comment GNU
+@comment ISO C
 @deftypefunx {long double} strtold (const char *@var{string}, char **@var{tailptr})
 These functions are analogous to @code{strtod}, but return @code{float}
 and @code{long double} values respectively.  They report errors in the
@@ -2158,7 +2178,7 @@ than @code{strtod}, but has less precision; conversely, @code{strtold}
 can be much slower but has more precision (on systems where @code{long
 double} is a separate type).
 
-These functions are GNU extensions.
+These functions have been GNU extensions and are new to @w{ISO C 9x}.
 @end deftypefun
 
 @comment stdlib.h