aboutsummaryrefslogtreecommitdiffstats
path: root/strsuftoll.c
Commit message (Collapse)AuthorAgeFilesLines
* progress: Port for Linux and DarwinHEADtrunkCameron Katri2021-03-301-20/+8
|
* Put a recursion limit to avoid DoS attacks (Maksymilian Arciemowicz)christos2011-10-221-24/+33
| | | While there do minor KNF, and do as the manual says: exit with EXIT_FAILURE
* Remove clause 3 and 4 from TNF licensesmartin2008-04-281-9/+2
|
* Use IEC 60027-2 prefixes for 2^n based prefixes.lukem2007-04-121-6/+6
|
* Explicitly use base 10 when parsing numbers, to enforce the "decimal number"lukem2004-03-051-6/+8
| | | | semantics that the comments referred to and as per dd(1) (which was the origin of this functionality).
* print max rather than min in error message when numberdbj2004-01-171-3/+3
| | | parsed by strsuftollx is greater than max
* Overhaul how `build.sh tools' are used:lukem2003-10-271-6/+6
| | | | | | | | | | | | | | | | * Rename "config.h" to "nbtool_config.h" and HAVE_CONFIG_H to HAVE_NBTOOL_CONFIG_H. This makes in more obvious in the source when we're using tools/compat/config.h versus "standard autoconf" config.h * Consistently move the inclusion of nbtool_config.h to before <sys/cdefs.h> so that the former can provide __RCSID() (et al), and there's no need to protect those macros any more. These changes should make it easier to "tool-ify" a program by adding: #if HAVE_NBTOOL_CONFIG_H #include "nbtool_config.h" #endif to the top of the source files (for the general case).
* Move UCB-licensed code from 4-clause to 3-clause licence.agc2003-08-071-7/+3
| | | Patches provided by Joel Baker in PR 22280, verified by myself.
* Use definition in "namespace.h" to rename functions, not home grown.itohy2003-02-081-10/+5
|
* add strsuftoll(3) and strsuftollx(3) - parse a string for a numberlukem2002-11-291-0/+254
with an optional suffix, product (two numbers separated by `x'), and provide range checking