Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen Note POSIX compliance. Reword a little around t...



details:   https://anonhg.NetBSD.org/src/rev/dfb99d5a1e9d
branches:  trunk
changeset: 754624:dfb99d5a1e9d
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Thu May 06 11:46:11 2010 +0000

description:
Note POSIX compliance. Reword a little around the example.

diffstat:

 lib/libc/gen/ctype.3 |  17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diffs (45 lines):

diff -r 82428c58cd99 -r dfb99d5a1e9d lib/libc/gen/ctype.3
--- a/lib/libc/gen/ctype.3      Thu May 06 11:09:39 2010 +0000
+++ b/lib/libc/gen/ctype.3      Thu May 06 11:46:11 2010 +0000
@@ -1,4 +1,4 @@
-.\"    $NetBSD: ctype.3,v 1.20 2010/04/05 21:33:54 joerg Exp $
+.\"    $NetBSD: ctype.3,v 1.21 2010/05/06 11:46:11 jruoho 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 March 11, 2009
+.Dd May 6, 2010
 .Dt CTYPE 3
 .Os
 .Sh NAME
@@ -74,10 +74,11 @@
 See the specific manual pages for information about the
 test or conversion performed by each function.
 .Sh EXAMPLES
-To print an upper-case version of a string on stdout, use the following
-code:
-.Bd -literal
-const char *s = ...;
+To print an upper-case version of a string to stdout,
+the following code can be used:
+.Bd -literal -offset indent
+const char *s = "xyz";
+
 while (*s != '\e0') {
     putchar(toupper((int)(unsigned char)*s));
     s++;
@@ -104,6 +105,10 @@
 .Fn isblank ,
 conform to
 .St -ansiC .
+All described functions, including
+.Fn isblank ,
+also conform to
+.St -p1003.1-2001 .
 .Sh CAVEATS
 The first argument of these functions is of type
 .Vt int ,



Home | Main Index | Thread Index | Old Index