From d042c5a26452797afc4fe8c2ceddebff94d88745 Mon Sep 17 00:00:00 2001 From: Chris Fraire Date: Fri, 25 Aug 2017 09:47:09 -0500 Subject: 8591 Man pages contain various errors Reviewed by: Toomas Soome Approved by: Robert Mustacchi --- usr/src/man/man3c/strtod.3c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr/src/man/man3c/strtod.3c') 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; -- cgit v1.2.3