Mercurial > hg > nnchat
comparison main.c @ 460:c956af023014
Cosmetics.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 26 May 2012 05:45:27 +0300 |
parents | 75ed7be2cfe8 |
children | 35d67bd0613b |
comparison
equal
deleted
inserted
replaced
459:75ed7be2cfe8 | 460:c956af023014 |
---|---|
206 } | 206 } |
207 | 207 |
208 return TRUE; | 208 return TRUE; |
209 } | 209 } |
210 | 210 |
211 | |
211 BOOL str_get_timestamp(char *str, size_t len, const char *fmt) | 212 BOOL str_get_timestamp(char *str, size_t len, const char *fmt) |
212 { | 213 { |
213 time_t stamp = time(NULL); | 214 time_t stamp = time(NULL); |
214 struct tm *stamp_tm; | 215 struct tm *stamp_tm; |
215 if ((stamp_tm = localtime(&stamp)) != NULL) | 216 if ((stamp_tm = localtime(&stamp)) != NULL) |
229 { | 230 { |
230 while (*buf != 0 && th_isspace(*buf)) buf++; | 231 while (*buf != 0 && th_isspace(*buf)) buf++; |
231 return buf; | 232 return buf; |
232 } | 233 } |
233 | 234 |
235 | |
234 int str_compare(const void *s1, const void *s2) | 236 int str_compare(const void *s1, const void *s2) |
235 { | 237 { |
236 return th_strcasecmp((const char *) s1, (const char *) s2); | 238 return th_strcasecmp((const char *) s1, (const char *) s2); |
237 } | 239 } |
240 | |
238 | 241 |
239 nn_window_t *nnwin_find(const char *id) | 242 nn_window_t *nnwin_find(const char *id) |
240 { | 243 { |
241 int i; | 244 int i; |
242 | 245 |