diff options
author | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-18 20:22:17 +0000 |
---|---|---|
committer | Leandro A. F. Pereira <leandro@hardinfo.org> | 2006-11-18 20:22:17 +0000 |
commit | 99d0488dc1a2de1e1701bdae3a35b3cd5605d7fe (patch) | |
tree | 60e301af19fd3f53d6bf68ee3f1fe9562f1d0318 /hardinfo2/util.c | |
parent | ee1fa4b725acd32a8549f0d5f16f6e5f1ec1fbd5 (diff) |
More CD-ROM information
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r-- | hardinfo2/util.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/hardinfo2/util.c b/hardinfo2/util.c index b18283eb..0c691f00 100644 --- a/hardinfo2/util.c +++ b/hardinfo2/util.c @@ -291,3 +291,15 @@ open_url(gchar *url) g_warning("Couldn't find a Web browser to open URL %s.", url); } + +/* Copyright: Jens Låås, SLU 2002 */ +gchar *strreplace(gchar *string, gchar *replace, gchar new_char) +{ + gchar *s; + for(s=string;*s;s++) + if(strchr(replace, *s)) + *s = new_char; + + return string; +} + |