From sheldonh@axl.noc.iafrica.com Fri Jun 11 05:22:29 1999
Return-Path: <sheldonh@axl.noc.iafrica.com>
Received: from axl.noc.iafrica.com (axl.noc.iafrica.com [196.31.1.175])
	by hub.freebsd.org (Postfix) with ESMTP id 1357A14F32
	for <FreeBSD-gnats-submit@freebsd.org>; 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 <sheldonh@uunet.co.za>
Sender: Sheldon Hearn <sheldonh@axl.noc.iafrica.com>
Reply-To: Sheldon Hearn <sheldonh@uunet.co.za>
To: FreeBSD-gnats-submit@freebsd.org
Subject: [PATCH] Fix disordering in strcmp(3) manpage
X-Send-Pr-Version: 3.2

>Number:         12133
>Category:       docs
>Synopsis:       [PATCH] Fix disordering in strcmp(3) manpage
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-doc
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 11 05:30:00 PDT 1999
>Closed-Date:    Fri Jun 11 09:16:46 PDT 1999
>Last-Modified:  Fri Jun 11 09:17:30 PDT 1999
>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:
State-Changed-From-To: open->closed 
State-Changed-By: mpp 
State-Changed-When: Fri Jun 11 09:16:46 PDT 1999 
State-Changed-Why:  
Supplied patch applied, thanks! 
>Unformatted:
