annotate doc/c-strtod.texi @ 17249:e542fd46ad6f

maint: update all copyright year number ranges Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
author Eric Blake <eblake@redhat.com>
date Tue, 01 Jan 2013 00:50:58 +0000
parents 8250f2777afc
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9603
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
1 @c Documentation of gnulib module 'c-strtod'.
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
2
17249
e542fd46ad6f maint: update all copyright year number ranges
Eric Blake <eblake@redhat.com>
parents: 16201
diff changeset
3 @c Copyright (C) 2008-2013 Free Software Foundation, Inc.
9603
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
4
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
5 @c Permission is granted to copy, distribute and/or modify this document
10762
d67664a4e01c Change license to GFDLv1.3+.
Simon Josefsson <simon@josefsson.org>
parents: 9603
diff changeset
6 @c under the terms of the GNU Free Documentation License, Version 1.3 or
9603
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
7 @c any later version published by the Free Software Foundation; with no
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
8 @c Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
9 @c Texts. A copy of the license is included in the ``GNU Free
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
10 @c Documentation License'' file as part of this distribution.
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
11
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
12 The @code{c-strtod} module contains a string to number (@samp{double})
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
13 conversion function operating on single-byte character strings, that operates
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
14 as if the locale encoding was ASCII.
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
15 (The "C" locale on many systems has the locale encoding "ASCII".)
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
16
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
17 The function is:
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
18 @smallexample
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
19 extern double c_strtod (const char *string, char **endp);
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
20 @end smallexample
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
21
7f9da67a609a Add documentation for the c-* modules.
Bruno Haible <bruno@clisp.org>
parents:
diff changeset
22 In particular, only a period @samp{.} is accepted as decimal point, even
11061
e57a59a1c129 Mention a couple of restrictions of c_strtod.
Michael Gold <mgold@ncf.ca>
parents: 10762
diff changeset
23 when the current locale's notion of decimal point is a comma @samp{,},
e57a59a1c129 Mention a couple of restrictions of c_strtod.
Michael Gold <mgold@ncf.ca>
parents: 10762
diff changeset
24 and no characters outside the basic character set are accepted.
e57a59a1c129 Mention a couple of restrictions of c_strtod.
Michael Gold <mgold@ncf.ca>
parents: 10762
diff changeset
25
11075
ab7203b2967c Change c_strtod, c_strtold to no longer call xalloc_die().
Bruno Haible <bruno@clisp.org>
parents: 11061
diff changeset
26 On platforms without @code{strtod_l}, this function is not safe for use in
11061
e57a59a1c129 Mention a couple of restrictions of c_strtod.
Michael Gold <mgold@ncf.ca>
parents: 10762
diff changeset
27 multi-threaded applications since it calls @code{setlocale}.