summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/printf.3
Commit message (Collapse)AuthorAgeFilesLines
* Revert changes of 'assure' to 'ensure' made in r211936.brucec2010-09-111-1/+1
| | | | Approved by: rrs (mentor)
* Fix incorrect usage of 'assure' and 'insure'.brucec2010-08-281-1/+1
| | | | Approved by: rrs (mentor)
* mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to theuqs2010-05-131-71/+71
| | | | | | | | | | | bottom of the manpages and order them consistently. GNU groff doesn't care about the ordering, and doesn't even mention CAVEATS and SECURITY CONSIDERATIONS as common sections and where to put them. Found by: mdocml lint run Reviewed by: ru
* mdoc: use macro for +- that is understood by mdocmluqs2010-05-111-2/+2
| | | | Reviewed by: brueffer
* I feel this wording of the history is more clear.obrien2010-04-051-3/+3
| | | | ANSIfy vasprintf() while I'm here.
* %U was macroized in mdoc(7), escape.ru2010-02-161-1/+1
|
* Fix the dprintf() prototype.brueffer2009-12-021-2/+2
| | | | | | PR: 141087 Submitted by: Jeremy Huddleston <jeremyhu@apple.com> MFC after: 3 days
* Add dprintf() and vdprintf() from POSIX.1-2008. Like getline(),das2009-03-041-27/+76
| | | | | | dprintf() is a simple wrapper around another function, so we may as well implement it. But also like getline(), we can't prototype it by default right now because it would break too many ports.
* Update the manpage to reflect r145172.das2009-01-281-2/+1
|
* Updates for changes in the way printf() handles hex floating pointdas2008-04-121-4/+5
| | | | numbers.
* Per Regents of the University of Calfornia letter, remove advertisingimp2007-01-091-4/+0
| | | | | | clause. # If I've done so improperly on a file, please let me know.
* Remove references to nonexistent "FreeBSD Security Architecture" document.tjr2005-09-051-5/+0
|
* Document that the length modifier l is ignored for floating pointstefanf2004-10-161-1/+3
| | | | conversion specifiers (a, A, e, E, f, F, g and G).
* Markup, grammar, and spelling fixes.ru2004-06-301-4/+3
|
* Bring the *printf(3) documentation up to date with the code:das2004-01-191-37/+24
| | | | | | | | | | | | | | | | | | | - Update and improve the documentation for %[aA] o Like %[eE], %[aA] may round the result if a precision is specified. o Grammar police: Fix a split infinitive. o The FreeBSD implementation does better than the minimum required by C99 (literal translation of the mantissa). The digit before the hexadecimal-point is never 0 unless the number itself is 0. o Clarify that the exponent field represents a decimal exponent of 2. o Discuss the fact that multiple valid representations are possible. o Remove the entry in the BUGS section claiming that %[aA] is not implemented. - Remove the entry in the BUGS section claiming that the ' flag for printing thousands separators is unimplemented for floating-point. - Remove the entry in the BUGS section claiming that the L modifier reduces the precision to "double" before conversion.
* Note that the printf(3) and scanf(3) family of functions don't deal withtjr2003-01-061-1/+7
| | | | multibyte characters in the format string correctly.
* Document the fact that the printf() family of functions return negativetjr2002-12-201-2/+14
| | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257
* mdoc(7) police: "The .Fn function".ru2002-12-181-4/+12
|
* Consistently mark std(in|out|err) with .Dv, because that's how theyru2002-12-041-1/+1
| | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re
* Cross-reference fmtcheck(3).tjr2002-10-201-0/+1
|
* Indent code example with one tab, not two, for consistency with the rest.tjr2002-10-191-8/+8
|
* Add cross-references between wide character and single-byte charactertjr2002-09-241-1/+2
| | | | versions of printf() and scanf().
* Implement the %ls and %lc conversions for printing wide character stringstjr2002-09-191-8/+0
| | | | | | and wide characters. These were already documented in the manual page, with an entry mentioning that they were not implemented yet. The XSI %S and %C synoyms have not been added.
* Style: One space between "restrict" qualifier and "*".tjr2002-09-061-8/+8
|
* - For compliance with IEEE Std 1003.1-2001, add the 'restrict'robert2002-08-151-4/+4
| | | | | | qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page.
* - Introduce the 'restrict' qualifier to function prototypes androbert2002-08-151-4/+4
| | | | | definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages.
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-3/+3
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* mdoc(7) police: punctuation.ru2002-08-091-1/+1
|
* Don't claim to fully implement C99 in the STANDARDS section and then disclaimwollman2002-07-151-2/+4
| | | | compliance in the BUGS section immediately below.
* Fix style and wording bugs introduced in my last commit.chris2002-06-181-11/+9
| | | | Sponsored by: DARPA, NAI Labs
* o Move more information from BUGS into SECURITY CONSIDERATIONS andchris2002-06-151-50/+56
| | | | | | | | condense the redundant bits. o Provide an example for using snprintf over sprintf. This may be supplemented with an asprintf() example soon. Sponsored by: DARPA, NAI Labs
* Include information on the dangers of passing a user-supplied string aschris2002-06-131-0/+21
| | | | | | | | a format string. This will later on be changed to a reference to the FreeBSD Security Architecture after it has been committed. PR: docs/39320 Sposnored by: DARPA, NAI Labs
* mdoc(7) police:ru2002-01-091-1/+2
| | | | Stop abusing the .%J macro for where the .Pa macro should have been used.
* Add new "SECURITY CONSIDERATIONS" sections.chris2002-01-061-0/+16
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs
* mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.ru2001-12-121-57/+67
|
* Remove blank line.fenner2001-12-071-1/+0
|
* Implement several of the c99 updates to printf(3):fenner2001-11-301-96/+225
| | | | | | | | | | | | | | | | - New length modifiers: hh, j, t, z. - New flag: '. Note that %'f is not yet implemented. - Use "inf"/"nan" for efg formats, "INF"/"NAN" for EFG formats. - Implemented %q in terms of %ll; if "quad_t" is not "long long" %q will break. Still to do: - %C, %S, %lc, %ls (wide character support) - %'f (thousands in integer portion of %f) - %a/%A (exact hex representation of floating-point numbers) Garrett Wollman wrote the first version of the vfprintf.c update; Mike Barcroft wrote the first version of the printf.3 changes.
* mdoc(7) police: Use the new .In macro for #include statements.ru2001-10-011-2/+2
|
* mdoc(7) police: fixed/simplified formatting.ru2001-07-041-130/+81
|
* Add description for the 'll' modifier for long long. In essence a copyschweikh2001-06-131-4/+24
| | | | | | | | from the 'l' description with s/long/long long/g. PR: 27017 Submitted by: Guy Harris <guy@alum.mit.edu> MFC after: 2 weeks
* Back out my changes describing how snprintf nul terminates. Itimp2001-06-051-9/+11
| | | | | | | was from the iso standard. Keep the sentence that says it is always NUL terminated to make sure that people understand that. Requested by: bde
* Minor improvements:imp2001-06-051-15/+29
| | | | | | o Explain snprintf's return value better. o Document snprintf, et al, were defined in C-99 o Warn against %n.
* Correct the documentation for snprintf() and vsprintf() which actuallygshapiro2001-05-301-1/+12
| | | | | | | return the number of characters that would have been in the new string. Obtained from: OpenBSD MFC after: 3 days
* Add warnings about trusting user-supplied data.eric2001-05-251-0/+14
| | | | | | Reviewed by: ru Approved by: murray Obtained from: OpenBSD
* mdoc(7) police: fix markup.ru2001-04-181-2/+6
|
* .St -ansiC -> .St -isoCru2001-02-261-1/+1
|
* mdoc(7) police: mark LC_NUMERIC with .Dv.ru2001-02-101-1/+2
|
* Note that decimal point taken from locale (SUSv2)ache2001-02-101-0/+3
|
* mdoc(7) police: split punctuation characters + misc fixes.ru2001-02-011-1/+1
|
* Make it a bit clearer that asprintf doesn't actually "return" a pointer inben2001-01-011-4/+3
| | | | | | | | the normal sense of the word, but does it through one of its arguments which is a pointer to a pointer. PR: 23717 Submitted by: phk
OpenPOWER on IntegriCloud