diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 15:02:33 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-07-16 15:02:33 +0200 |
commit | d0179ea21969cdc9c8d98154b84fd0106be83078 (patch) | |
tree | 5af53068ef6cbcbc395f61a8d79db4496a482ac9 /tools.c | |
parent | 685e0f6951fadcc7723374ca2e0769771f3ef3bb (diff) | |
download | vdr-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.c | 14 |
1 files changed, 13 insertions, 1 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.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; |