summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/printf.3
Commit message (Collapse)AuthorAgeFilesLines
* Note that the printf(3) and scanf(3) family of functions don't deal withTim J. Robbins2003-01-061-1/+7
| | | | | | | multibyte characters in the format string correctly. Notes: svn path=/head/; revision=108775
* Document the fact that the printf() family of functions return negativeTim J. Robbins2002-12-201-2/+14
| | | | | | | | | | values (EOF in our case) on error, and some of the possible errno values in an Errors section. PR: 39257 Notes: svn path=/head/; revision=108121
* mdoc(7) police: "The .Fn function".Ruslan Ermilov2002-12-181-4/+12
| | | | Notes: svn path=/head/; revision=108037
* Consistently mark std(in|out|err) with .Dv, because that's how theyRuslan Ermilov2002-12-041-1/+1
| | | | | | | | | | are marked up in stdio(3), and because they are defined expressions of type "FILE *". Approved by: re Notes: svn path=/head/; revision=107619
* Cross-reference fmtcheck(3).Tim J. Robbins2002-10-201-0/+1
| | | | Notes: svn path=/head/; revision=105498
* Indent code example with one tab, not two, for consistency with the rest.Tim J. Robbins2002-10-191-8/+8
| | | | Notes: svn path=/head/; revision=105448
* Add cross-references between wide character and single-byte characterTim J. Robbins2002-09-241-1/+2
| | | | | | | versions of printf() and scanf(). Notes: svn path=/head/; revision=103891
* Implement the %ls and %lc conversions for printing wide character stringsTim J. Robbins2002-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. Notes: svn path=/head/; revision=103633
* Style: One space between "restrict" qualifier and "*".Tim J. Robbins2002-09-061-8/+8
| | | | Notes: svn path=/head/; revision=103012
* - For compliance with IEEE Std 1003.1-2001, add the 'restrict'Robert Drehmel2002-08-151-4/+4
| | | | | | | | | qualifier to function prototypes and definitions where appropriate using the '__restrict' macro. - Update the manual page. Notes: svn path=/head/; revision=101914
* - Introduce the 'restrict' qualifier to function prototypes andRobert Drehmel2002-08-151-4/+4
| | | | | | | | definitions to comply with IEEE Std 1003.1-2001. - Update the manual pages. Notes: svn path=/head/; revision=101913
* Fix typos; each file has at least one s/seperat/separat/Jens Schweikhardt2002-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 Notes: svn path=/head/; revision=101677
* mdoc(7) police: punctuation.Ruslan Ermilov2002-08-091-1/+1
| | | | Notes: svn path=/head/; revision=101578
* Don't claim to fully implement C99 in the STANDARDS section and then disclaimGarrett Wollman2002-07-151-2/+4
| | | | | | | compliance in the BUGS section immediately below. Notes: svn path=/head/; revision=100136
* Fix style and wording bugs introduced in my last commit.Chris Costello2002-06-181-11/+9
| | | | | | | Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=98392
* o Move more information from BUGS into SECURITY CONSIDERATIONS andChris Costello2002-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 Notes: svn path=/head/; revision=98241
* Include information on the dangers of passing a user-supplied string asChris Costello2002-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 Notes: svn path=/head/; revision=98194
* mdoc(7) police:Ruslan Ermilov2002-01-091-1/+2
| | | | | | | Stop abusing the .%J macro for where the .Pa macro should have been used. Notes: svn path=/head/; revision=89138
* Add new "SECURITY CONSIDERATIONS" sections.Chris Costello2002-01-061-0/+16
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, NAI Labs Notes: svn path=/head/; revision=88971
* mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.Ruslan Ermilov2001-12-121-57/+67
| | | | Notes: svn path=/head/; revision=87735
* Remove blank line.Bill Fenner2001-12-071-1/+0
| | | | Notes: svn path=/head/; revision=87478
* Implement several of the c99 updates to printf(3):Bill 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. Notes: svn path=/head/; revision=87113
* mdoc(7) police: Use the new .In macro for #include statements.Ruslan Ermilov2001-10-011-2/+2
| | | | Notes: svn path=/head/; revision=84306
* mdoc(7) police: fixed/simplified formatting.Ruslan Ermilov2001-07-041-130/+81
| | | | Notes: svn path=/head/; revision=79199
* Add description for the 'll' modifier for long long. In essence a copyJens Schweikhardt2001-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 Notes: svn path=/head/; revision=78180
* Back out my changes describing how snprintf nul terminates. ItWarner Losh2001-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 Notes: svn path=/head/; revision=77794
* Minor improvements:Warner Losh2001-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. Notes: svn path=/head/; revision=77744
* Correct the documentation for snprintf() and vsprintf() which actuallyGregory Neil Shapiro2001-05-301-1/+12
| | | | | | | | | | return the number of characters that would have been in the new string. Obtained from: OpenBSD MFC after: 3 days Notes: svn path=/head/; revision=77510
* Add warnings about trusting user-supplied data.Eric Melville2001-05-251-0/+14
| | | | | | | | | Reviewed by: ru Approved by: murray Obtained from: OpenBSD Notes: svn path=/head/; revision=77200
* mdoc(7) police: fix markup.Ruslan Ermilov2001-04-181-2/+6
| | | | Notes: svn path=/head/; revision=75661
* .St -ansiC -> .St -isoCRuslan Ermilov2001-02-261-1/+1
| | | | Notes: svn path=/head/; revision=73088
* mdoc(7) police: mark LC_NUMERIC with .Dv.Ruslan Ermilov2001-02-101-1/+2
| | | | Notes: svn path=/head/; revision=72313
* Note that decimal point taken from locale (SUSv2)Andrey A. Chernov2001-02-101-0/+3
| | | | Notes: svn path=/head/; revision=72297
* mdoc(7) police: split punctuation characters + misc fixes.Ruslan Ermilov2001-02-011-1/+1
| | | | Notes: svn path=/head/; revision=71895
* Make it a bit clearer that asprintf doesn't actually "return" a pointer inBen Smithurst2001-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 Notes: svn path=/head/; revision=70553
* Prepare for mdoc(7)NG.Ruslan Ermilov2000-12-291-1/+1
| | | | Notes: svn path=/head/; revision=70481
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-1/+0
| | | | Notes: svn path=/head/; revision=68575
* Introduce ".Lb" macro to libc manpages.Alexey Zelkin2000-04-211-0/+2
| | | | | | | More libraries manpages updates following. Notes: svn path=/head/; revision=59460
* Remove more single-space hard sentence breaks.Sheldon Hearn2000-03-021-1/+2
| | | | Notes: svn path=/head/; revision=57695
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-021-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57686
* We no longer care about the VAX and Tahoe compilers :-)Kris Kennaway2000-01-171-6/+1
| | | | Notes: svn path=/head/; revision=56131
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Fixed missing "G" in the list item for the main description of %g andBruce Evans1999-08-081-2/+2
| | | | | | | %G formats. Notes: svn path=/head/; revision=49518
* asprintf() does use realloc() internally, but saying so in the manpage can beTim Vanderhoek1999-07-251-4/+2
| | | | | | | | misinterpreted to mean that the pointer passed to asprintf() must be suitable for passing to realloc() as-is (ie. either a NULL pointer or a valid pointer). Notes: svn path=/head/; revision=49082
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48794
* Replace my original asprintf() and vasprintf() hacks with somethingPeter Wemm1998-07-081-10/+6
| | | | | | | | | | | more cleanly integrated with stdio. This should be faster and cleaner since it doesn't memcpy() the data into a seperate buffer. This lets stdio allocate and manage the buffer and then hand it over to the user. Obtained from: Todd Miller <Todd.Miller@courtesan.com> via OpenBSD Notes: svn path=/head/; revision=37487
* Spelling corrections.Joseph Koshy1998-06-061-1/+1
| | | | | | | | PR: 6868 Submitted by: Josh Gilliam <josh@quick.net> Notes: svn path=/head/; revision=36692
* FIxed arg types (mostly missing consts) in synopsis.Bruce Evans1997-03-191-1/+1
| | | | Notes: svn path=/head/; revision=24008
* The following patch to lib/libc/stdio implements positional arguments inJordan K. Hubbard1997-01-141-0/+14
| | | | | | | | | | | | a manner consistent with other implementations. Its done in a way that adds only a tiny amount of overhead when positional arguments are not used. I also have a test program to go with this, but don't know where it belongs in the tree. Submitted-By: Bill Fenner <fenner@FreeBSD.ORG> Notes: svn path=/head/; revision=21674
* Update some more man pages to use the .Fx macro.Mike Pritchard1996-08-211-1/+1
| | | | Notes: svn path=/head/; revision=17763