]> jfr.im git - irc/evilnet/x3.git/blobdiff - src/tools.c
Sync log function addition, x2 debug function stripped down. Note this is tested...
[irc/evilnet/x3.git] / src / tools.c
index ecfdc1ec7959bc9d96028dfc6b3f05a4e8dab99c..291150878947406b44e73445df478bab13da437a 100644 (file)
@@ -952,3 +952,13 @@ char *mysep(char **sepstr, char *delim)
   return(retstr);
 }
 
+char *time2str(time_t thetime)
+{
+    char *buf, *tmp;
+
+    buf = ctime(&thetime);
+    tmp = (char *)strchr(buf, '\n');
+    *tmp = '\0';
+    return(buf);
+}
+