Date: Fri, 11 Jun 1999 14:22:18 +0200 From: Sheldon Hearn <sheldonh@uunet.co.za> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/12133: [PATCH] Fix disordering in strcmp(3) manpage Message-ID: <18054.929103738@axl.noc.iafrica.com>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18054.929103738>