| Summary: | An error in the printf(3) man page. | ||
|---|---|---|---|
| Product: | Documentation | Reporter: | Anonymous <prdeltoid> |
| Component: | Books & Articles | Assignee: | ru <ru> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
State Changed From-To: open->patched Patched in HEAD (r203958). Responsible Changed From-To: freebsd-doc->ru Assign to committer as MFC reminder. State Changed From-To: patched->closed Fixed in stable/8 (r213473). Problem doesn't exist in stable/7. Thanks Ruslan. :) |
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, ...); --------------------------------------------------------------