diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 17:50:35 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2017-08-05 17:50:35 +0200 |
commit | 20077c1429915b2c223e4d179a033f2b1806872c (patch) | |
tree | 76c89e23adc5bb529e310d9e25e7016f6d699645 /include | |
parent | 9cf89cdf84fb20154088145980b676d2b28fc55d (diff) | |
download | busybox-w32-20077c1429915b2c223e4d179a033f2b1806872c.tar.gz busybox-w32-20077c1429915b2c223e4d179a033f2b1806872c.tar.bz2 busybox-w32-20077c1429915b2c223e4d179a033f2b1806872c.zip |
libbb: make trim() return pointer to terminating NUL
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6a2a2d640..6077f64c9 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -347,7 +347,7 @@ unsigned long long monotonic_ms(void) FAST_FUNC; | |||
347 | unsigned monotonic_sec(void) FAST_FUNC; | 347 | unsigned monotonic_sec(void) FAST_FUNC; |
348 | 348 | ||
349 | extern void chomp(char *s) FAST_FUNC; | 349 | extern void chomp(char *s) FAST_FUNC; |
350 | extern void trim(char *s) FAST_FUNC; | 350 | extern char *trim(char *s) FAST_FUNC; |
351 | extern char *skip_whitespace(const char *) FAST_FUNC; | 351 | extern char *skip_whitespace(const char *) FAST_FUNC; |
352 | extern char *skip_non_whitespace(const char *) FAST_FUNC; | 352 | extern char *skip_non_whitespace(const char *) FAST_FUNC; |
353 | extern char *skip_dev_pfx(const char *tty_name) FAST_FUNC; | 353 | extern char *skip_dev_pfx(const char *tty_name) FAST_FUNC; |