summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-07-21 13:39:02 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-07-21 13:39:02 +0200
commit4c90306502f858ec95683baf2bfeb9b1fe669c66 (patch)
tree36089396af32aa217f75c32619bbd2a58a1edd80 /tools.c
parent214c12289f58c90369fce58af20ae50a22fda34d (diff)
downloadvdr-4c90306502f858ec95683baf2bfeb9b1fe669c66.tar.gz
vdr-4c90306502f858ec95683baf2bfeb9b1fe669c66.tar.bz2
Made skipspace() an inline function and changed it to handle the most common case of 'no leading space' very fast, and avoid calling isspace()
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tools.c b/tools.c
index dc91d11a..0d471bb7 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.133 2007/07/20 14:25:46 kls Exp $
+ * $Id: tools.c 1.134 2007/07/21 13:02:45 kls Exp $
*/
#include "tools.h"
@@ -167,13 +167,6 @@ char *strreplace(char *s, const char *s1, const char *s2)
return s;
}
-char *skipspace(const char *s)
-{
- while (*s && isspace(*s))
- s++;
- return (char *)s;
-}
-
char *stripspace(char *s)
{
if (s && *s) {