Bug 150548

Summary: An error in the printf(3) man page.
Product: Documentation Reporter: Anonymous <prdeltoid>
Component: Books & ArticlesAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Anonymous 2010-09-14 05:40:02 UTC
I originally came across this when I used "man 3 sprintf" to view the sprintf man page.
This is the output from "man 3 printf", the hyphens are added to make the separation between my writing and my copied and pasted text clear:
--------------------------------------------------------------
[prdeltoid@home /usr/home/prdeltoid]$ man 3 printf
PRINTF(3)              FreeBSD Library Functions Manual              PRINTF(3)

NAME
     printf, fprintf, sprintf, snprintf, asprintf, dprintf, vprintf, vfprintf,
     vsprintf, vsnprintf, vasprintf, vdprintf -- formatted output conversion

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #define _WITH_DPRINTF
     #include <stdio.h>

     int
     printf(const char * restrict format, ...);

     int
     fprintf(FILE * restrict stream, const char * restrict format, ...);

     int
     sprintf(char * restrict str, const char * restrict format, ...);

     int
--More--(byte 1161)mdoc warning: Using a macro as first argument cancels effect of .Cm (#815)
Usage: .%U URL ... (#815)
Usage: .Cm interactive_command_modifier ... (#819)
     snprintf(char * restrict str, size_t size, const char * restrict format,
         ...);

     int
     asprintf(char **ret, const char *format, ...);
--------------------------------------------------------------
Comment 1 Alexander Best freebsd_committer freebsd_triage 2010-09-15 11:21:31 UTC
State Changed
From-To: open->patched

Patched in HEAD (r203958). 


Comment 2 Alexander Best freebsd_committer freebsd_triage 2010-09-15 11:21:31 UTC
Responsible Changed
From-To: freebsd-doc->ru

Assign to committer as MFC reminder.
Comment 3 Alexander Best freebsd_committer freebsd_triage 2010-10-06 11:51:47 UTC
State Changed
From-To: patched->closed

Fixed in stable/8 (r213473). Problem doesn't exist in stable/7. 
Thanks Ruslan. :)