graveman-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Graveman-cvs] Changes to graveman/current/src/tools.c


From: sylvain cresto
Subject: [Graveman-cvs] Changes to graveman/current/src/tools.c
Date: Mon, 21 Feb 2005 18:54:37 -0500

Index: graveman/current/src/tools.c
diff -u graveman/current/src/tools.c:1.15 graveman/current/src/tools.c:1.16
--- graveman/current/src/tools.c:1.15   Mon Feb 21 01:25:28 2005
+++ graveman/current/src/tools.c        Mon Feb 21 23:54:28 2005
@@ -51,6 +51,16 @@
   return Adst;
 }
 
+gchar *sc_chomp(gchar *Astr)
+{
+  gchar *s;
+  
+  if ((s=strrchr(Astr, 13))) *s=0;
+  if ((s=strrchr(Astr, 10))) *s=0;
+
+  return Astr;
+}
+
 gint sc_strcountv(gchar **Aarray)
 {
   gint i = 0;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]