summaryrefslogtreecommitdiff
path: root/hardinfo2/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'hardinfo2/util.c')
-rw-r--r--hardinfo2/util.c12
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;
+}
+