summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2000-07-16 15:02:33 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2000-07-16 15:02:33 +0200
commitd0179ea21969cdc9c8d98154b84fd0106be83078 (patch)
tree5af53068ef6cbcbc395f61a8d79db4496a482ac9 /tools.c
parent685e0f6951fadcc7723374ca2e0769771f3ef3bb (diff)
downloadvdr-d0179ea21969cdc9c8d98154b84fd0106be83078.tar.gz
vdr-d0179ea21969cdc9c8d98154b84fd0106be83078.tar.bz2
Improved handling of blanks in channel and timer names
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools.c b/tools.c
index c0eb2ec5..b2c95f37 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.8 2000/06/24 15:26:15 kls Exp $
+ * $Id: tools.c 1.9 2000/07/16 14:14:44 kls Exp $
*/
#define _GNU_SOURCE
@@ -76,6 +76,18 @@ char *readline(FILE *f)
return NULL;
}
+char *strreplace(char *s, char c1, char c2)
+{
+ char *p = s;
+
+ while (*p) {
+ if (*p == c1)
+ *p = c2;
+ p++;
+ }
+ return s;
+}
+
int time_ms(void)
{
static time_t t0 = 0;