Mercurial > hg > octave-kai > gnulib-hg
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 |
rev | line source |
---|---|
4910 | 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 | 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 | 21 #ifndef XSTRTOD_H |
653 | 22 # define XSTRTOD_H 1 |
513 | 23 |
5159 | 24 # include <stdbool.h> |
25 | |
26 bool xstrtod (const char *str, const char **ptr, double *result, | |
27 double (*convert) (char const *, char **)); | |
6912 | 28 bool xstrtold (const char *str, const char **ptr, long double *result, |
29 long double (*convert) (char const *, char **)); | |
513 | 30 |
728 | 31 #endif /* not XSTRTOD_H */ |