summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
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;