projects
/
platform
/
upstream
/
toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e949310
)
Remove redundant numlen.
author
Rob Landley
<rob@landley.net>
Thu, 30 Apr 2015 19:01:35 +0000
(14:01 -0500)
committer
Rob Landley
<rob@landley.net>
Thu, 30 Apr 2015 19:01:35 +0000
(14:01 -0500)
lib/lib.c
patch
|
blob
|
history
diff --git
a/lib/lib.c
b/lib/lib.c
index
ab773b5
..
2f7d28f
100644
(file)
--- a/
lib/lib.c
+++ b/
lib/lib.c
@@
-280,16
+280,6
@@
long atolx_range(char *numstr, long low, long high)
return val;
}
-int numlen(long l)
-{
- int len = 0;
- while (l) {
- l /= 10;
- len++;
- }
- return len;
-}
-
int stridx(char *haystack, char needle)
{
char *off;