Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Prefer {u,}intmax_t over the deprecated {u_,}quad_t. | stefanf | 2005-08-05 | 1 | -17/+18 |
| | |||||
* | Markup and wording fixes. | ru | 2005-06-14 | 1 | -1/+1 |
| | | | | Approved by: re (blanket) | ||||
* | Sync program's usage() with manpage's SYNOPSIS. | ru | 2005-05-21 | 1 | -1/+1 |
| | |||||
* | Update the bugs section, null characters in the format string are now handled. | stefanf | 2005-04-14 | 1 | -6/+4 |
| | |||||
* | Handle null characters in the format string. A \0 in the argument passed to %b | stefanf | 2005-04-14 | 1 | -7/+13 |
| | | | | still results in trucation but this is be much harder to fix. | ||||
* | No reason to write \a and \v as octal escape sequences. | stefanf | 2005-04-14 | 1 | -2/+2 |
| | |||||
* | Printf(1) is WARNS 6 clean. | stefanf | 2005-04-14 | 1 | -0/+1 |
| | |||||
* | - Move parts of the long main() function into a new function doformat(). | stefanf | 2005-04-14 | 1 | -153/+160 |
| | | | | - Rewrite the loop in main() to be more understandable. | ||||
* | Assign 0.0 to the variable passed to getfloating() if the argument is missing. | stefanf | 2005-04-13 | 1 | -1/+3 |
| | | | | MFC after: 1 week | ||||
* | Replace buggy for-loops to skip certain character with strspn(). If *fmt was | stefanf | 2005-04-11 | 1 | -3/+3 |
| | | | | | | | '\0' (eg in the invocation 'printf %'), the for-loop would miss the terminating null character. MFC after: 1 week | ||||
* | Support the L modifier for floating-point values as an extension. | das | 2005-03-21 | 2 | -6/+44 |
| | | | | | | When L is omitted, double precision is used, so printf(1) gives reproducable results. When L is specified, long double precision is used, which may improve precision, depending on the machine. | ||||
* | Added the EXIT STATUS section where appropriate. | ru | 2005-01-17 | 1 | -1/+1 |
| | |||||
* | Allow %' to be used as a format flag by printf(1). This makes it | keramida | 2004-09-24 | 1 | -1/+1 |
| | | | | | | | | | | possible to print the thousands separator in the locale setups that have one, by something like this: $ env -i LC_NUMERIC=en_US.ISO8859-1 ./printf "%'0.2f\n" 12345 12,345.00 Reviewed by: das | ||||
* | Fix a markup nit and a misplaced full stop in previous. | tjr | 2004-07-03 | 1 | -2/+2 |
| | | | | Noticed by: ru | ||||
* | Document missing multibyte character support in utilities specified | tjr | 2004-07-03 | 1 | -1/+6 |
| | | | | by POSIX. | ||||
* | Deal with double whitespace. | ru | 2004-07-03 | 1 | -4/+4 |
| | |||||
* | Mechanically kill hard sentence breaks. | ru | 2004-07-02 | 1 | -7/+14 |
| | |||||
* | s/latter/former/ | das | 2004-06-05 | 1 | -1/+1 |
| | |||||
* | - Document the %a, %A, and %F format specifiers. | das | 2004-06-05 | 1 | -3/+31 |
| | | | | | - Document the way infinity and NaN are printed. - Un-document the non-existent %w specifier. | ||||
* | Enable support for the %a, %A, and %F format specifiers. | das | 2004-06-05 | 1 | -1/+4 |
| | |||||
* | Make it possible for the %[eEfgG] formats to not result in an error | cperciva | 2004-03-07 | 1 | -1/+1 |
| | | | | | | | | | | being reported by /usr/bin/printf. This bug has been around for 22 months... either nobody uses printf with floating-point values, or people are forgetting to check their return codes. Approved by: rwatson (mentor) | ||||
* | ANSIify function definitions. | dwmalone | 2002-09-04 | 1 | -25/+14 |
| | | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5 | ||||
* | Kill excessive whitespace between macro arguments. | keramida | 2002-07-15 | 1 | -5/+5 |
| | |||||
* | Fix duplicate % in %b format introduced in rev 1.22. | tjr | 2002-06-19 | 1 | -5/+6 |
| | |||||
* | Let printf(1) tell the difference between zero width/precision and | tjr | 2002-06-19 | 1 | -7/+9 |
| | | | | | | | | unspecified width/precision. PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week | ||||
* | Allow format strings containing "%%" to be reused. | tjr | 2002-06-19 | 1 | -2/+2 |
| | | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week | ||||
* | Allow `%' to be written out with an octal escape (\45 or \045). | tjr | 2002-06-19 | 1 | -1/+5 |
| | | | | | | PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week | ||||
* | Typo: characer -> character | keramida | 2002-05-31 | 1 | -1/+1 |
| | |||||
* | mdoc(7) police: lint. | ru | 2002-05-30 | 1 | -10/+8 |
| | |||||
* | Handle numbers larger than QUAD_MAX for unsigned conversions correctly. | tjr | 2002-04-25 | 1 | -50/+96 |
| | | | | | | | | Exit with nonzero status if a conversion failed. Play nice if used as a shell builtin (currently disabled). Submitted by: bde (partially) Approved by: mike | ||||
* | - printf shouldn't bail out if a conversion fails, it should just keep | jmallett | 2002-04-23 | 2 | -42/+93 |
| | | | | | | | | | | | | | | | processing them. - \c escape to immediately stop output (similar to echo's \c) - \0NNN should be allowed for octal character escapes (instead of just \NNN) - %b conversion, which is like %s but interprets \n \t etc. inside the string is missing. And I may not be any poet, but in lieu of an in-tree regression test: ref5% ./printf '%s%b%b%c%s%d\n' 'PR' '\0072' '\t' '3' '56' 0x10 PR: 35616 Submitted by: tjr MFC after: 1 week | ||||
* | Use `The .Nm utility' | charnier | 2002-04-20 | 1 | -2/+3 |
| | |||||
* | remove __P | imp | 2002-03-22 | 1 | -9/+9 |
| | |||||
* | Remove leaf node WARNS?=2 (that mainly I added). This should | markm | 2002-02-08 | 1 | -1/+0 |
| | | | | help the GCC3 transition and CURRENT in general. | ||||
* | Replace reference to ANSI C draft with standard. | ru | 2002-01-16 | 1 | -4/+1 |
| | | | | PR: docs/30731 | ||||
* | Style improvements recommended by Bruce as a follow up to some | dwmalone | 2001-12-10 | 1 | -1/+1 |
| | | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF. | ||||
* | Warns cleanups. | dwmalone | 2001-12-03 | 2 | -5/+7 |
| | |||||
* | The RETURN VALUES section is not appropriate for section 1 manual | dd | 2001-11-23 | 1 | -3/+2 |
| | | | | | pages; rename it to DIAGNOSTICS. Also use the .Ex macro while I'm here. | ||||
* | Remove the printf builtin command from sh(1), which command is not | knu | 2001-11-20 | 1 | -10/+0 |
| | | | | | | | | | | | | used so often that it's worth keeping it as a builtin. Now that all the printf invocations from within the system startup scripts, we can safely remove it. Urged by: sheldonh :) No MFC is planned so far because it may break compatibility and violate POLA. | ||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -3/+3 |
| | |||||
* | mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2). | ru | 2001-07-06 | 1 | -2/+2 |
| | |||||
* | mdoc(7) police: mark LC_NUMERIC with .Dv. | ru | 2001-02-10 | 1 | -1/+2 |
| | |||||
* | Localize it (LC_NUMERIC) | ache | 2001-02-10 | 2 | -0/+10 |
| | |||||
* | Fix printf(1) for cases where a long string with no format specifiers is | ben | 2000-12-21 | 1 | -4/+16 |
| | | | | | | followed by a %d (probably others too) format specifier. Reviewed by: audit | ||||
* | Prepare for mdoc(7)NG. | ru | 2000-12-19 | 1 | -2/+5 |
| | |||||
* | When we have both a rcsid and sccsid, ifdef 0 the sccsid. This | imp | 2000-09-04 | 1 | -0/+2 |
| | | | | | appears to be the standard FreeBSD way to do this. style(9) is silent about this, however. | ||||
* | Revert to 1.8. I misread the sentence and its context. | chris | 2000-07-21 | 1 | -2/+1 |
| | |||||
* | Properly document %.0f behavior. | chris | 2000-07-21 | 1 | -1/+2 |
| | |||||
* | Extend to deal with 64 bit numeric arguments. | se | 2000-07-10 | 1 | -14/+17 |
| | |||||
* | Remove redundat extern declaration | cracauer | 2000-04-20 | 1 | -1/+2 |
| |