summaryrefslogtreecommitdiff
path: root/usr.bin/printf
AgeCommit message (Collapse)Author
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