From owner-freebsd-doc Fri Jun 11 5:30: 3 1999 Delivered-To: freebsd-doc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7238615450 for ; Fri, 11 Jun 1999 05:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA82927; Fri, 11 Jun 1999 05:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175]) by hub.freebsd.org (Postfix) with ESMTP id 1357A14F32 for ; Fri, 11 Jun 1999 05:22:19 -0700 (PDT) (envelope-from sheldonh@axl.noc.iafrica.com) Received: from sheldonh (helo=axl.noc.iafrica.com) by axl.noc.iafrica.com with local-esmtp (Exim 3.02 #1) id 10sQKA-0004hD-00 for FreeBSD-gnats-submit@freebsd.org; Fri, 11 Jun 1999 14:22:18 +0200 Message-Id: <18054.929103738@axl.noc.iafrica.com> Date: Fri, 11 Jun 1999 14:22:18 +0200 From: Sheldon Hearn Reply-To: Sheldon Hearn To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: docs/12133: [PATCH] Fix disordering in strcmp(3) manpage Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12133 >Category: docs >Synopsis: [PATCH] Fix disordering in strcmp(3) manpage >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 Jun 11 05:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Sheldon Hearn >Release: FreeBSD 4.0-CURRENT i386 >Organization: UUNET South Africa >Environment: FreeBSD 4.0-CURRENT #2: Wed Jun 9 14:28:13 SAST 1999 i386 >Description: The strcmp(3) manpage describes the strcmp() and strncmp() functions. The difference between the two is described under RETURN VALUES instead of DESCRIPTION. This is obscure, since the difference has nothing to do with return value. >How-To-Repeat: N/A >Fix: The following diff moves the explanation of the difference between strncmp() and strcmp() from the RETURN VALUES section of the manpage to the DESCRIPTION section. Index: lib/libc/string/strcmp.3 =================================================================== RCS file: /home/ncvs/src/lib/libc/string/strcmp.3,v retrieving revision 1.2 diff -u -d -r1.2 strcmp.3 --- strcmp.3 1998/01/27 07:01:09 1.2 +++ strcmp.3 1999/06/11 12:15:21 @@ -58,6 +58,12 @@ .Fa s1 and .Fa s2 . +.Pp +The +.Fn strncmp +compares not more than +.Fa len +characters. .Sh RETURN VALUES The .Fn strcmp @@ -72,12 +78,6 @@ .Ql \e200 is greater than .Ql \e0 . -.Pp -The -.Fn strncmp -compares not more than -.Fa len -characters. .Sh SEE ALSO .Xr bcmp 3 , .Xr memcmp 3 , >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message