diff options
| author | pat <> | 2005-03-30 18:51:49 +0000 |
|---|---|---|
| committer | pat <> | 2005-03-30 18:51:49 +0000 |
| commit | 894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (patch) | |
| tree | f9fb8e9324f6cbdc10d72cab8b889d470252465a /src/lib/libc/stdlib/atof.c | |
| parent | 162f8b042bf31ab94714a6f194e9836c08c085f5 (diff) | |
| download | openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.gz openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.bz2 openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.zip | |
ansi + de-register
ok otto deraadt
Diffstat (limited to 'src/lib/libc/stdlib/atof.c')
| -rw-r--r-- | src/lib/libc/stdlib/atof.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/atof.c b/src/lib/libc/stdlib/atof.c index dad2b77bfd..2724530231 100644 --- a/src/lib/libc/stdlib/atof.c +++ b/src/lib/libc/stdlib/atof.c | |||
| @@ -28,14 +28,13 @@ | |||
| 28 | */ | 28 | */ |
| 29 | 29 | ||
| 30 | #if defined(LIBC_SCCS) && !defined(lint) | 30 | #if defined(LIBC_SCCS) && !defined(lint) |
| 31 | static char *rcsid = "$OpenBSD: atof.c,v 1.3 2003/06/02 20:18:37 millert Exp $"; | 31 | static char *rcsid = "$OpenBSD: atof.c,v 1.4 2005/03/30 18:51:49 pat Exp $"; |
| 32 | #endif /* LIBC_SCCS and not lint */ | 32 | #endif /* LIBC_SCCS and not lint */ |
| 33 | 33 | ||
| 34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
| 35 | 35 | ||
| 36 | double | 36 | double |
| 37 | atof(ascii) | 37 | atof(const char *ascii) |
| 38 | const char *ascii; | ||
| 39 | { | 38 | { |
| 40 | return(strtod(ascii, (char **)NULL)); | 39 | return(strtod(ascii, (char **)NULL)); |
| 41 | } | 40 | } |
