From owner-freebsd-doc Fri Nov 16 19:50:12 2001 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 8490037B418 for ; Fri, 16 Nov 2001 19:50:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAH3o1w58005; Fri, 16 Nov 2001 19:50:01 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 06DC737B416 for ; Fri, 16 Nov 2001 19:41:49 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAH3fnr57341; Fri, 16 Nov 2001 19:41:49 -0800 (PST) (envelope-from nobody) Message-Id: <200111170341.fAH3fnr57341@freefall.freebsd.org> Date: Fri, 16 Nov 2001 19:41:49 -0800 (PST) From: SUZUKI Koichi To: freebsd-gnats-submit@freebsd.org X-Send-Pr-Version: www-1.0 Subject: docs/32054: inconsistency between index.3 and rindex.3 Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 32054 >Category: docs >Synopsis: inconsistency between index.3 and rindex.3 >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: doc-bug >Submitter-Id: current-users >Arrival-Date: Fri Nov 16 19:50:01 PST 2001 >Closed-Date: >Last-Modified: >Originator: SUZUKI Koichi >Release: FreeBSD 4.4-stanble >Organization: jpman Project >Environment: >Description: I found some inconsistency between index.3 and rindex.3. >How-To-Repeat: >Fix: --- index.3.orig Fri Nov 16 19:24:34 2001 +++ index.3 Fri Nov 16 19:26:16 2001 @@ -62,9 +62,11 @@ is returned. If .Fa c -is '\e0', +is +.Ql \e0 , .Fn index -locates the terminating '\e0'. +locates the terminating +.Ql \e0 . .Sh SEE ALSO .Xr memchr 3 , .Xr rindex 3 , --- rindex.3.orig Fri Nov 16 19:24:40 2001 +++ rindex.3 Fri Nov 16 19:27:36 2001 @@ -50,8 +50,7 @@ The .Fn rindex function -locates the last character -matching +locates the last character matching .Fa c (converted to a .Em char ) @@ -59,7 +58,8 @@ .Fa s . .Sh RETURN VALUES A pointer to the character is returned if it is found; otherwise -NULL is returned. +.Dv NULL +is returned. If .Fa c is >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message