diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-21 13:39:02 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-07-21 13:39:02 +0200 |
commit | 4c90306502f858ec95683baf2bfeb9b1fe669c66 (patch) | |
tree | 36089396af32aa217f75c32619bbd2a58a1edd80 /tools.c | |
parent | 214c12289f58c90369fce58af20ae50a22fda34d (diff) | |
download | vdr-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.c | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -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) { |