diff options
author | Landry Breuil <landry@cvs.openbsd.org> | 2008-06-13 21:04:25 +0000 |
---|---|---|
committer | Landry Breuil <landry@cvs.openbsd.org> | 2008-06-13 21:04:25 +0000 |
commit | 834a83ecc65c8fa6c5ac3c451077677a3642d36c (patch) | |
tree | fcda4445a95988735257b64ea0f26f56786912b0 /include | |
parent | 4743fd3d70d1fce61146ff4761a1ba23af953aff (diff) |
Add strtof() to libc, some ports seem to like it. Currently it's a simple
call to strtod() with bounding check.
Discussed with pyr@ and otto@
ok otto@ deraadt@
Diffstat (limited to 'include')
-rw-r--r-- | include/stdlib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 6c337ba13ab..34548af609f 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $OpenBSD: stdlib.h,v 1.41 2008/03/16 19:47:43 otto Exp $ */ +/* $OpenBSD: stdlib.h,v 1.42 2008/06/13 21:04:24 landry Exp $ */ /* $NetBSD: stdlib.h,v 1.25 1995/12/27 21:19:08 jtc Exp $ */ /*- @@ -131,6 +131,7 @@ void *realloc(void *, size_t); void *recalloc(void *, size_t, size_t); void srand(unsigned); double strtod(const char *, char **); +float strtof(const char *, char **); long strtol(const char *, char **, int); unsigned long strtoul(const char *, char **, int); |