aboutsummaryrefslogtreecommitdiffstats
path: root/missing/strtod.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/strtod.c')
-rw-r--r--missing/strtod.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/missing/strtod.c b/missing/strtod.c
index 746a5da9..7e6cc0c4 100644
--- a/missing/strtod.c
+++ b/missing/strtod.c
@@ -28,7 +28,7 @@
extern double atof();
double
-strtod (s, ptr)
+strtod(s, ptr)
register char *s;
register char **ptr;
{
@@ -105,7 +105,8 @@ out:
}
#ifdef TEST
-main (argc, argv)
+int
+main(argc, argv)
int argc;
char **argv;
{
@@ -116,5 +117,7 @@ char **argv;
d = strtod (*argv, & p);
printf ("%lf [%s]\n", d, p);
}
+
+ return 0;
}
#endif