summaryrefslogtreecommitdiff
path: root/usr.bin/printf
AgeCommit message (Collapse)Author
1998-12-19brace pollution, and char -> unsigned charchristos
1998-10-14include unistdwsanchez
1998-08-22\e generates an escape character but is not listed in the manpage. Fixed.garbled
1998-02-03add <unistd.h> to fix compiler warningperry
1997-11-08remove WARNS?=1, cleanup .Nm usagelukem
1997-10-19s/index/strchrlukem
1997-10-18"merge" lite-2. our printf is already kinda different...minor changes only.mrg
1997-07-04Fix compiler warnings.christos
1997-03-08alternate -> alternative, per PR 2643mouse
1997-01-14lint and KNF changes. (mostly casting returns to void to quiet lint.)cgd
1997-01-09RCS ID policetls
1995-07-07Changed floating point output format to be exactly the same (use samejtc
text and macros) as those in the printf(3) manpage. This fixes PR #1194, albeit differently.
1995-02-15The descriptions of the o and u formatting options were reversed (PR #785).jtc
1994-02-03Simplify conversion of "quoted" numeric arguments.jtc
1994-02-03Code to check if conversion (by strtol(), strtoul(), or strtod()) wasjtc
identical, so I moved it into its own function.
1994-02-03Add and use getulong() to handle %u, %o, %x & %X formatting directives.jtc
It was using getlong(), which caused values larger than LONG_MAX to be truncated to LONG_MAX. As recommended by 1003.2, print warning messages when argument cannot be converted to value or is out of range.
1993-12-31Handle format strings error correctly.jtc
1993-11-25Error in hextobin() macro messed up hex escape constants.jtc
1993-11-19Oops! get rid of the free(), mklong()'s buffer no longer malloc()'d.jtc
1993-11-19Return from main() if a \c escape is encountered in a %b string (was an exit()).jtc
Use macro constants for "skip1" and "skip2" instead of assigning them each loop iteration. Reformat the multi-case entries in the "big switch" so the lines don't wrap.
1993-11-19Move all the code from do_printf() into do-while loop in main(). I needjtc
to be able to return from main() when a "\c" in a %b string is encountered.
1993-11-19Merged in most of the changes from 4.4 necessary to make printf a shjtc
and csh builtin --- still need to handle the one remaining exit() in the SysV escape string handling code.
1993-11-05Changes required to make printf utility POSIX.2 compliant:jtc
* Escape characters in the string needed to be processed as they were encountered, otherwise a "\000" octal constant would prematurely terminate the formatting string. * Implemented the %b, SysV echo(1) compatibility, formatting directive.
1993-08-01Add RCS identifiers.mycroft
1993-08-01Add RCS indentifiers.mycroft
1993-07-31Add RCS indentifiers.mycroft
1993-06-064.4BSD-Lite2mrg
1993-04-19Cleanup for GCC 2.mycroft
1993-03-21initial import of 386bsd-0.1 sourcescgd