Date: Tue, 14 Sep 2010 04:33:18 GMT From: Anonymous <prdeltoid@gmx.us> To: freebsd-gnats-submit@FreeBSD.org Subject: docs/150548: An error in the printf man page. Message-ID: <201009140433.o8E4XIvS046340@www.freebsd.org> Resent-Message-ID: <201009140440.o8E4e2J7089633@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201009140433.o8E4XIvS046340>