summaryrefslogtreecommitdiff
path: root/usr/src/man/man3c/strtod.3c
diff options
context:
space:
mode:
authorChris Fraire <cfraire@me.com>2017-08-25 09:47:09 -0500
committerRobert Mustacchi <rm@joyent.com>2017-09-21 13:54:02 +0000
commitd042c5a26452797afc4fe8c2ceddebff94d88745 (patch)
treebc51db221e6a1f4babc967ba489e20d294d75315 /usr/src/man/man3c/strtod.3c
parent2cedd8f0ecbd2b29bf0aac72bb8b7413b0326938 (diff)
downloadillumos-joyent-d042c5a26452797afc4fe8c2ceddebff94d88745.tar.gz
8591 Man pages contain various errors
Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/man/man3c/strtod.3c')
-rw-r--r--usr/src/man/man3c/strtod.3c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/man/man3c/strtod.3c b/usr/src/man/man3c/strtod.3c
index 8e71e67310..985379c091 100644
--- a/usr/src/man/man3c/strtod.3c
+++ b/usr/src/man/man3c/strtod.3c
@@ -230,12 +230,12 @@ what_kind_of_number (char *s)
double d;
long l;
d = strtod(s, &endp);
- if (s != endp && *endp == `\0')
+ if (s != endp && *endp == '\e0')
printf("It's a float with value %g\en", d);
else
{
l = strtol(s, &endp, 0);
- if (s != endp && *endp == `\e0')
+ if (s != endp && *endp == '\e0')
printf("It's an integer with value %ld\en", 1);
else
return 1;