Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 fix return value
details: https://anonhg.NetBSD.org/src/rev/6c5506b15a45
branches: trunk
changeset: 786270:6c5506b15a45
user: yamt <yamt%NetBSD.org@localhost>
date: Wed Apr 24 00:51:58 2013 +0000
description:
fix return value
diffstat:
share/man/man9/scanc.9 | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r 0835379f785b -r 6c5506b15a45 share/man/man9/scanc.9
--- a/share/man/man9/scanc.9 Tue Apr 23 23:39:13 2013 +0000
+++ b/share/man/man9/scanc.9 Wed Apr 24 00:51:58 2013 +0000
@@ -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 @@
.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
Home |
Main Index |
Thread Index |
Old Index