Mercurial > pidgin.yaz
diff src/util.h @ 10636:0f5c5e6fb27f
[gaim-migrate @ 12118]
The strftime warnings fiunally got to me, so I made gaim_strftime to work
around it.
Turns out KingAnt had already discovered this solution for oscar.c but left
it #iffed out.
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Thu, 24 Feb 2005 01:11:17 +0000 |
parents | f7f06cb69d5e |
children | c4cb90065e1d |
line wrap: on
line diff
--- a/src/util.h Wed Feb 23 23:39:59 2005 +0000 +++ b/src/util.h Thu Feb 24 01:11:17 2005 +0000 @@ -194,6 +194,14 @@ */ time_t gaim_str_to_time(const char *timestamp, gboolean utc); +/** + * Creates a string according to a time and format string + * + * This function just calls strftime. The only advantage to using it + * is that gcc won't give a warning if you use %c + */ +size_t gaim_strftime(char *s, size_t max, const char *format, const struct tm *tm); + /*@}*/