| History log of /src/lib/libc/gen/humanize_number.3 |
| Revision | | Date | Author | Comments |
| 1.13 |
| 12-Mar-2019 |
wiz | Fix typo.
|
| 1.12 |
| 11-Mar-2019 |
kre | PR lib/54053
When auto scaling, and the buffer is bigger than big enough for the biggest possible number, don't try and calculate the max value that will fit in the buffer - that calc will overflow (guaranteed) and is useless, the value we're formatting cannot possibly be bigger. So simply use the unscaled value (the raw number).
While here, also avoid returning values that are larger than the buffer len ... while it would be nice to be able to find out how big the buffer should be so the data will fit, the interface doesn't really allow that (the buffer length passed in controls the scaling - at least when auto scaling) and the code already does "return -1" when it detects the buffer length is too small, even before it works out how much would have been needed. So, rather than returning a value > len (while truncating the result to fit in len ... all courtesy of snprintf()) return -1 in this case as well.
Also, allow suffix==NULL (meaning "") - there's no reason not to, and requiring users to pass in an explicit "" is not useful.
|
| 1.11 |
| 20-Aug-2011 |
wiz | branches: 1.11.42; Fix variable name in SYNOPSIS to match DESCRIPTION. From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
|
| 1.10 |
| 28-Apr-2011 |
wiz | Spelling.
|
| 1.9 |
| 14-Jan-2011 |
jruoho | Xref strsuftoll(3) and orders(7).
|
| 1.8 |
| 30-Apr-2008 |
martin | branches: 1.8.8; Convert TNF licenses to new 2 clause variant
|
| 1.7 |
| 09-Feb-2008 |
jmmv | branches: 1.7.4; Document dehumanize_number(3).
|
| 1.6 |
| 14-Dec-2007 |
xtraeme | The humanize_number(3) proto will be available in stdlib.h, after christos moves it to the correct place.
|
| 1.5 |
| 11-Apr-2005 |
wiz | branches: 1.5.10; Remove duplicate word, from Wojciech A. Koszek in PR 29938.
|
| 1.4 |
| 16-Apr-2003 |
wiz | Use .In header.h instead of .Fd #include \*[Lt]header.h\*[Gt] Much easier to read and write, and supported by groff for ages. Okayed by ross.
|
| 1.3 |
| 01-Oct-2002 |
wiz | New sentence, new line. From Robert Elz.
|
| 1.2 |
| 26-Sep-2002 |
wiz | Kilo abbreviation is a small k (PR 18408).
|
| 1.1 |
| 22-Aug-2002 |
abs | branches: 1.1.2; Move humanize_number(3) from libutil to libc as per discussion on tech-misc Revert minor number bump on libutil (with note to skip it next update), and bump libc.
|
| 1.1.2.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
| 1.1.2.2 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
| 1.1.2.1 |
| 22-Aug-2002 |
nathanw | file humanize_number.3 was added on branch nathanw_sa on 2002-08-27 23:49:31 +0000
|
| 1.5.10.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
| 1.5.10.1 |
| 09-Jan-2008 |
matt | sync with HEAD
|
| 1.7.4.1 |
| 18-May-2008 |
yamt | sync with head.
|
| 1.8.8.2 |
| 30-Apr-2008 |
martin | Convert TNF licenses to new 2 clause variant
|
| 1.8.8.1 |
| 30-Apr-2008 |
martin | file humanize_number.3 was added on branch christos-time_t on 2008-04-30 13:10:51 +0000
|
| 1.11.42.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|