Module Name:    src
Committed By:   yamt
Date:           Wed Apr 24 00:51:58 UTC 2013

Modified Files:
        src/share/man/man9: scanc.9

Log Message:
fix return value


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/share/man/man9/scanc.9

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

Modified files:

Index: src/share/man/man9/scanc.9
diff -u src/share/man/man9/scanc.9:1.2 src/share/man/man9/scanc.9:1.3
--- src/share/man/man9/scanc.9:1.2	Tue Nov  1 23:18:07 2011
+++ src/share/man/man9/scanc.9	Wed Apr 24 00:51:58 2013
@@ -1,6 +1,6 @@
-.\"	$NetBSD: scanc.9,v 1.2 2011/11/01 23:18:07 wiz Exp $
+.\"	$NetBSD: scanc.9,v 1.3 2013/04/24 00:51:58 yamt Exp $
 .\"
-.\" Copyright (c)2011 YAMAMOTO Takashi,
+.\" Copyright (c)2011,2013 YAMAMOTO Takashi,
 .\" All rights reserved.
 .\"
 .\" Redistribution and use in source and binary forms, with or without
@@ -25,7 +25,7 @@
 .\" SUCH DAMAGE.
 .\"
 .\" ------------------------------------------------------------
-.Dd November 1, 2011
+.Dd April 24, 2013
 .Dt SCANC 9
 .Os
 .\" ------------------------------------------------------------
@@ -56,7 +56,11 @@ isn't zero or the string is exhausted, t
 .Sh RETURN VALUES
 The
 .Fn scanc
-function returns the number of characters skipped.
+function returns the length of the rest of the string,
+including the character which made the scan stop.
+If the
+.Fn scanc
+function exhausted the string, it returns 0.
 .\" ------------------------------------------------------------
 .Sh HISTORY
 The

Reply via email to