https://bugzilla.kernel.org/show_bug.cgi?id=42042 Michael Kerrisk <mtk.manpages@xxxxxxxxx> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mtk.manpages@xxxxxxxxx --- Comment #6 from Michael Kerrisk <mtk.manpages@xxxxxxxxx> 2012-04-23 20:32:31 --- James, Thanks for the detailed report, and sorry I've been slow to respond. For strchr(3), I applied a variation of what you proposed: --- a/man3/strchr.3 +++ b/man3/strchr.3 @@ -28,7 +28,7 @@ .\" 2006-05-19, Justin Pryzby <pryzbyj@xxxxxxxxxxxxxxxx> .\" Document strchrnul(3). .\" -.TH STRCHR 3 2010-09-20 "GNU" "Linux Programmer's Manual" +.TH STRCHR 3 2012-04-24 "GNU" "Linux Programmer's Manual" .SH NAME strchr, strrchr, strchrnul \- locate character in string .SH SYNOPSIS @@ -72,6 +72,11 @@ and .BR strrchr () functions return a pointer to the matched character or NULL if the character is not found. +The terminating null byte is considered part of the string, +so that if +.I c +is specified as \(aq\\0\(aq, +these functions return a pointer to the terminator. The .BR strchrnul () -- Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching the assignee of the bug. -- To unsubscribe from this list: send the line "unsubscribe linux-man" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html