comparison 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
comparison
equal deleted inserted replaced
10635:6895c4212362 10636:0f5c5e6fb27f
191 * @param utc Assume UTC if no timezone specified 191 * @param utc Assume UTC if no timezone specified
192 * 192 *
193 * @return A time_t. 193 * @return A time_t.
194 */ 194 */
195 time_t gaim_str_to_time(const char *timestamp, gboolean utc); 195 time_t gaim_str_to_time(const char *timestamp, gboolean utc);
196
197 /**
198 * Creates a string according to a time and format string
199 *
200 * This function just calls strftime. The only advantage to using it
201 * is that gcc won't give a warning if you use %c
202 */
203 size_t gaim_strftime(char *s, size_t max, const char *format, const struct tm *tm);
196 204
197 /*@}*/ 205 /*@}*/
198 206
199 207
200 /**************************************************************************/ 208 /**************************************************************************/