From 99d0488dc1a2de1e1701bdae3a35b3cd5605d7fe Mon Sep 17 00:00:00 2001 From: "Leandro A. F. Pereira" Date: Sat, 18 Nov 2006 20:22:17 +0000 Subject: More CD-ROM information --- hardinfo2/util.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'hardinfo2/util.c') 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; +} + -- cgit v1.2.3