summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2020-12-26 15:49:01 +0100
commit2b3556b460665d9a4036b1623e7e7ff5ff6d37d8 (patch)
treebee99e68a196ba076440ad6516b5a0149996b6f2 /tools.c
parentd2e0087c4e13b2acbecc4bafb3cb2ab656c95339 (diff)
downloadvdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.gz
vdr-2b3556b460665d9a4036b1623e7e7ff5ff6d37d8.tar.bz2
Implemented "Pattern Timers"2.5.1
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index 3a3a1143..046829f0 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 4.13 2020/11/22 13:32:05 kls Exp $
+ * $Id: tools.c 5.1 2020/12/26 15:49:01 kls Exp $
*/
#include "tools.h"
@@ -198,6 +198,12 @@ int strcountchr(const char *s, char c)
return n;
}
+const char *strgetlast(const char *s, char c)
+{
+ const char *p = strrchr(s, c);
+ return p ? p + 1 : s;
+}
+
char *stripspace(char *s)
{
if (s && *s) {