From 9c3d1657f1a3561910ceb87c1ea21d349fbfaaed Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 30 Apr 2015 14:01:35 -0500 Subject: Remove redundant numlen. --- lib/lib.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/lib.c b/lib/lib.c index ab773b5b..2f7d28f4 100644 --- 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; -- cgit v1.2.3