Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Feb 1996 07:46:47 -0600
From:      dglo@ssec.wisc.edu
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   docs/1000: miscellaneous man-page bugs
Message-ID:  <199602071346.HAA14746@tick.SSEC.WISC.EDU>
Resent-Message-ID: <199602071350.FAA29444@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1000
>Category:       docs
>Synopsis:       miscellaneous man page bugs
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  7 05:50:01 PST 1996
>Last-Modified:
>Originator:     Dave Glowacki
>Organization:
Me, Myself and I
>Release:        FreeBSD 2.1-STABLE i386
>Environment:
FreeBSD homeboy 2.1-STABLE FreeBSD 2.1-STABLE
>Description:

strcat.3 claims that:
	The strncat() function appends not more than count characters
but /usr/src/lib/libc/string/strncat.c (and the ANSI spec) says:
	At most strlen(dst)+n+1 bytes are written at dst
	(at most n+1 bytes being appended)

The description of format specifications in printf.1 says:
	diouXx	The argument is printed as a signed decimal (d or i), un-
		signed decimal, unsigned octal, or unsigned hexadecimal (X or
		x), respectively.
where 'unsigned decimal' and `unsigned octal' should probably be reversed,
as they are in the printf.3 man page

printf.3 has a minor formatting bug, so that the last sentence in the
description of the `0' flag says:
	If a precision is given with a numeric conversion
	(Mc d, i, o, u, i, x, and X), the `0' flag is ignored.
The `Mc' looks like an error.

>How-To-Repeat:

In the course of pulling together material for a C class, do:

	man strncat
	man 1 printf
	man 3 printf

while looking at the actual code :-)

>Fix:
	Please (ahhh, it's *so* nice to be on the other side of
	send-pr for a change :-)
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602071346.HAA14746>