docs/150548: An error in the printf man page.
Anonymous
prdeltoid at gmx.us
Tue Sep 14 04:40:03 UTC 2010
>Number: 150548
>Category: docs
>Synopsis: An error in the printf man page.
>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: Tue Sep 14 04:40:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Anonymous
>Release: 8.1
>Organization:
>Environment:
FreeBSD home 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:55:53 UTC 2010 root at almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
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 at 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, ...);
--------------------------------------------------------------
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-doc
mailing list