summaryrefslogtreecommitdiff
path: root/usr.bin/printf/printf.c
AgeCommit message (Expand)Author
2023-11-26Remove copyright strings ifdef'd outWarner Losh
2023-11-26usr.bin: Remove ancient SCCS tags.Warner Losh
2023-09-25Purge more stray embedded $FreeBSD$ stringsJohn Baldwin
2018-08-11printf: Fix \c in %b in printf builtin exiting the shell after r337458Jilles Tjoelker
2018-08-08Fix printf(1) ignores width and precision in %b format.Pedro F. Giffuni
2018-08-08Revert r337440: the log message is wrong.Pedro F. Giffuni
2018-08-07Fix printf(1) ignores width and precision in %b format.Pedro F. Giffuni
2017-11-20General further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-04-29printf: Output formatted data directly, instead of via asprintf.Jilles Tjoelker
2017-02-28Renumber copyright clause 4Warner Losh
2015-03-01sh: Fix compiler warnings related to duplicate or missing declarations.Jilles Tjoelker
2014-05-29Minor style knit.Pedro F. Giffuni
2014-05-26printf(1): warn about incomplete uses n$Pedro F. Giffuni
2014-05-13printf: Fix missing arguments for %u/%o/%x/%X after r265592.Jilles Tjoelker
2014-05-11printf: fix regression after illumos merges.Pedro F. Giffuni
2014-05-10prinf: replace use of alloca with variable length array.Pedro F. Giffuni
2014-05-08Fix the incorrect handling of %b and \c in printf(1)Pedro F. Giffuni
2014-05-07Add width and precision specifiers to printf(1) %n$.Pedro F. Giffuni
2014-04-21Add parameterized position handling to printf(1).Pedro F. Giffuni
2014-04-17Minor style(9) cleanupsPedro F. Giffuni
2012-12-18POSIX requires that non-existent or null arguments be treated as if aEitan Adler
2012-09-15sh: Prefer internal nextopt() to libc getopt().Jilles Tjoelker
2012-01-12Style cleanups for printf.Pedro F. Giffuni
2011-05-28printf: Allow multibyte characters for '<char> form, avoid negative codes.Jilles Tjoelker
2011-03-01printf: Note that this is used both as a normal program and a shell builtin.Jilles Tjoelker
2010-12-29printf: Do not use sh memory functions in sh builtin.Jilles Tjoelker
2010-12-20sh: Make warnings in the printf builtin non-fatal, like in the program.Jilles Tjoelker
2010-12-14Revert r216423 per request from Jilles.Xin LI
2010-12-14When printf is being used as a sh(1) builtin, it can not callXin LI
2010-12-14We work on ctype's and not only on numbers so set LC_ALL instead ofXin LI
2010-12-14IEEE Std 1003.1-2008, Section 1.4, Utility Description Defaults saysXin LI
2010-12-14Make use of EX_USAGE for usage().Xin LI
2010-12-13The only caller of mknum() provides a char instead of an int, so make itXin LI
2010-12-13Move locale.h include to the beginning header section as pointed out byXin LI
2010-12-11Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl
2010-12-08printf: Remove support for building as a csh builtin.Jilles Tjoelker
2010-11-19sh: Add printf builtin.Jilles Tjoelker
2008-08-02POSIX says that octal escapes have the format \ddd in the format string,David Schultz
2005-08-05Prefer {u,}intmax_t over the deprecated {u_,}quad_t.Stefan Farfeleder
2005-05-21Sync program's usage() with manpage's SYNOPSIS.Ruslan Ermilov
2005-04-14Handle null characters in the format string. A \0 in the argument passed to %bStefan Farfeleder
2005-04-14No reason to write \a and \v as octal escape sequences.Stefan Farfeleder
2005-04-14- Move parts of the long main() function into a new function doformat().Stefan Farfeleder
2005-04-13Assign 0.0 to the variable passed to getfloating() if the argument is missing.Stefan Farfeleder
2005-04-11Replace buggy for-loops to skip certain character with strspn(). If *fmt wasStefan Farfeleder
2005-03-21Support the L modifier for floating-point values as an extension.David Schultz
2004-09-24Allow %' to be used as a format flag by printf(1). This makes itGiorgos Keramidas
2004-06-05Enable support for the %a, %A, and %F format specifiers.David Schultz
2004-03-07Make it possible for the %[eEfgG] formats to not result in an errorColin Percival
2002-09-04ANSIify function definitions.David Malone