Mercurial > pidgin.yaz
comparison src/util.h @ 5944:158196b2db19
[gaim-migrate @ 6385]
Added #ifdef __cplusplus lines so that things will link right with C++.
Also added some doxygen comment blocks that didn't previously exist.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Mon, 23 Jun 2003 06:40:13 +0000 |
parents | a4f2aba0848d |
children | 2fed50891afa |
comparison
equal
deleted
inserted
replaced
5943:a4f2aba0848d | 5944:158196b2db19 |
---|---|
26 #ifndef _GAIM_UTIL_H_ | 26 #ifndef _GAIM_UTIL_H_ |
27 #define _GAIM_UTIL_H_ | 27 #define _GAIM_UTIL_H_ |
28 | 28 |
29 #include "account.h" | 29 #include "account.h" |
30 | 30 |
31 #ifdef __cplusplus | |
32 extern "C" { | |
33 #endif | |
34 | |
31 /** | 35 /** |
32 * Normalizes a string, so that it is suitable for comparison. | 36 * Normalizes a string, so that it is suitable for comparison. |
33 * | 37 * |
34 * The returned string will point to a static buffer, so if the | 38 * The returned string will point to a static buffer, so if the |
35 * string is intended to be kept long-term, you <i>must</i> | 39 * string is intended to be kept long-term, you <i>must</i> |
297 */ | 301 */ |
298 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, | 302 gchar *gaim_strreplace(const gchar *string, const gchar *delimiter, |
299 const gchar *replacement); | 303 const gchar *replacement); |
300 | 304 |
301 /** | 305 /** |
302 * Returns a string representing a filesize in the appropriate units (MB, KB, GB, etc.) | 306 * Returns a string representing a filesize in the appropriate |
307 * units (MB, KB, GB, etc.) | |
303 * | 308 * |
304 * @param size The size | 309 * @param size The size |
305 */ | 310 */ |
306 char *gaim_get_size_string(size_t size); | 311 char *gaim_get_size_string(size_t size); |
307 | 312 |
313 #ifdef __cplusplus | |
314 } | |
315 #endif | |
316 | |
308 #endif /* _GAIM_UTIL_H_ */ | 317 #endif /* _GAIM_UTIL_H_ */ |