Module Name:    src
Committed By:   wiz
Date:           Wed Feb 25 16:23:40 UTC 2015

Modified Files:
        src/lib/libc/gen: ctype.3

Log Message:
Remove sentence about casting to int (also from example).
Bump date.

ok joerg@


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libc/gen/ctype.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/ctype.3
diff -u src/lib/libc/gen/ctype.3:1.21 src/lib/libc/gen/ctype.3:1.22
--- src/lib/libc/gen/ctype.3:1.21	Thu May  6 11:46:11 2010
+++ src/lib/libc/gen/ctype.3	Wed Feb 25 16:23:40 2015
@@ -1,4 +1,4 @@
-.\"	$NetBSD: ctype.3,v 1.21 2010/05/06 11:46:11 jruoho Exp $
+.\"	$NetBSD: ctype.3,v 1.22 2015/02/25 16:23:40 wiz Exp $
 .\"
 .\" Copyright (c) 1991 Regents of the University of California.
 .\" All rights reserved.
@@ -30,7 +30,7 @@
 .\"
 .\"     @(#)ctype.3	6.5 (Berkeley) 4/19/91
 .\"
-.Dd May 6, 2010
+.Dd February 25, 2015
 .Dt CTYPE 3
 .Os
 .Sh NAME
@@ -80,7 +80,7 @@ the following code can be used:
 const char *s = "xyz";
 
 while (*s != '\e0') {
-    putchar(toupper((int)(unsigned char)*s));
+    putchar(toupper((unsigned char)*s));
     s++;
 }
 .Ed
@@ -137,9 +137,6 @@ or
 must first be cast to
 .Vt unsigned char ,
 to ensure that the values are within the correct range.
-The result should then be cast to
-.Vt int
-to avoid warnings from some compilers.
 Casting a negative-valued
 .Vt char
 or

Reply via email to