annotate lib/xstrtod.h @ 8582:88177595d847

Tweak last patch: Sync with gettext.
author Bruno Haible <bruno@clisp.org>
date Thu, 29 Mar 2007 22:34:33 +0000
parents 314715e0260d
children bbbbbf4cd1c5
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4910
de285d9e7c4d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4397
diff changeset
1 /* Error-checking interface to strtod-like functions.
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
2
6912
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
3 Copyright (C) 1996, 1998, 2003, 2004, 2006 Free Software Foundation, Inc.
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
4
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
5 This program is free software; you can redistribute it and/or modify
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
6 it under the terms of the GNU General Public License as published by
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
7 the Free Software Foundation; either version 2, or (at your option)
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
8 any later version.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
9
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
10 This program is distributed in the hope that it will be useful,
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
13 GNU General Public License for more details.
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
14
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
15 You should have received a copy of the GNU General Public License
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
16 along with this program; if not, write to the Free Software Foundation,
5848
a48fb0e98c8c *** empty log message ***
Paul Eggert <eggert@cs.ucla.edu>
parents: 5159
diff changeset
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
4397
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
18
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
19 /* Written by Jim Meyering. */
c6450308f123 Assume C89, so PARAMS isn't needed.
Paul Eggert <eggert@cs.ucla.edu>
parents: 1216
diff changeset
20
513
Jim Meyering <jim@meyering.net>
parents:
diff changeset
21 #ifndef XSTRTOD_H
653
b63f146fd963 indent cpp-directives
Jim Meyering <jim@meyering.net>
parents: 514
diff changeset
22 # define XSTRTOD_H 1
513
Jim Meyering <jim@meyering.net>
parents:
diff changeset
23
5159
a535859efd14 Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4910
diff changeset
24 # include <stdbool.h>
a535859efd14 Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4910
diff changeset
25
a535859efd14 Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4910
diff changeset
26 bool xstrtod (const char *str, const char **ptr, double *result,
a535859efd14 Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 4910
diff changeset
27 double (*convert) (char const *, char **));
6912
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
28 bool xstrtold (const char *str, const char **ptr, long double *result,
314715e0260d Merge from coreutils.
Paul Eggert <eggert@cs.ucla.edu>
parents: 5848
diff changeset
29 long double (*convert) (char const *, char **));
513
Jim Meyering <jim@meyering.net>
parents:
diff changeset
30
728
Jim Meyering <jim@meyering.net>
parents: 653
diff changeset
31 #endif /* not XSTRTOD_H */