aboutsummaryrefslogtreecommitdiff
path: root/libbb/trim.c
Commit message (Collapse)AuthorAgeFilesLines
* whitespace and comment format fixes, no code changesGravatar Denys Vlasenko2017-10-051-1/+0
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* libbb: make trim() return pointer to terminating NULGravatar Denys Vlasenko2017-08-051-2/+10
| | | | | | | | | | | function old new delta trim 80 90 +10 angle_address 56 50 -6 sysctl_main 282 273 -9 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: +10/-15) Total: -5 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: make GNU licensing statement forms more regularGravatar Denys Vlasenko2010-08-161-1/+1
| | | | | | | This change retains "or later" state! No licensing _changes_ here, only form is adjusted (article, space between "GPL" and "v2" and so on). Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: remove last function calls to isspaceGravatar Denys Vlasenko2009-10-221-5/+4
| | | | | | | | | | | function old new delta xstrtoul_range_sfx 232 231 -1 xstrtoull_range_sfx 295 293 -2 trim 82 80 -2 trim_trailing_spaces_and_print 57 52 -5 isspace 18 - -18 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* *: introduce and use FAST_FUNC: regparm on i386, otherwise no-onGravatar Denis Vlasenko2008-06-271-1/+1
| | | | | | | text data bss dec hex filename 808035 611 6868 815514 c719a busybox_old 804472 611 6868 811951 c63af busybox_unstripped
* syscall: code shrinkGravatar Denis Vlasenko2007-10-291-2/+6
| | | | | | | text data bss dec hex filename 777209 974 9676 787859 c0593 busybox_old 777042 974 9676 787692 c04ec busybox_unstripped
* style fixes. No code changesGravatar Denis Vlasenko2007-04-121-6/+2
|
* - remove emacs layout block as suggested by Robert P.J. DayGravatar Bernhard Reutner-Fischer2006-05-191-23/+1
| | | | - use shorter boilerplate while at it
* According to bug #63, crond is unhappy with crontab lines that don't end in aGravatar Rob Landley2005-09-011-4/+8
| | | | newline, or lines that have trailing spaces.
* Remove trailing whitespace. Update copyright to include 2004.Gravatar Eric Andersen2004-03-151-1/+1
|
* Update a bunch of docs. Run a script to update my email addr.Gravatar Eric Andersen2003-07-141-2/+2
|
* Major rework of the directory structure and the entire build system.Gravatar Eric Andersen2001-10-241-10/+6
| | | | -Erik
* Reversed last patch; unnecessary.Gravatar Mark Whitley2001-04-231-4/+0
|
* Added a sanity check to fix weird bug exposed when sourcing in commands from aGravatar Mark Whitley2001-04-231-1/+5
| | | | file with lash. Based on report from Heinz Walter.
* Patch from Larry Doolittle to eliminate needless thrashingGravatar Eric Andersen2001-04-041-3/+3
| | | | | about when trimming long strings with lots of trailing white space.
* if strlen(s) was 0, it would then end up using s[-1] as an array index. Bad,Gravatar Eric Andersen2001-04-031-4/+5
| | | | | | | bad, bad. This was crashing the shell on powerpc boxes, though all other archs seem to have a much more forgiving malloc implementations. I finally found this bug using electric-fence on a powerpc box. -Erik
* Convert utility.c into libbb.a. It is now a whole pile of .cGravatar Eric Andersen2001-03-161-0/+52
files. Clean up the resulting damage and fix up the makefile. -Erik