diff options
Diffstat (limited to 'src/irc_string.c')
-rw-r--r-- | src/irc_string.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/irc_string.c b/src/irc_string.c index 3ad8f93..4ba1057 100644 --- a/src/irc_string.c +++ b/src/irc_string.c @@ -49,31 +49,6 @@ has_wildcards(const char *str) } /* - * myctime - This is like standard ctime()-function, but it zaps away - * the newline from the end of that string. Also, it takes - * the time value as parameter, instead of pointer to it. - * Note that it is necessary to copy the string to alternate - * buffer (who knows how ctime() implements it, maybe it statically - * has newline there and never 'refreshes' it -- zapping that - * might break things in other places...) - * - * - * Thu Nov 24 18:22:48 1986 - */ -const char * -myctime(time_t value) -{ - static char buf[32]; - char *p; - - strlcpy(buf, ctime(&value), sizeof(buf)); - - if ((p = strchr(buf, '\n')) != NULL) - *p = '\0'; - return buf; -} - -/* * strip_tabs(dst, src, length) * * Copies src to dst, while converting all \t (tabs) into spaces. |