Mercurial > pidgin.yaz
changeset 8432:33cc36f5a7a6
[gaim-migrate @ 9162]
Added gaim_add_eight(), which adds 8 to a number and returns it. You may
all blame SimGuy for this.
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Fri, 12 Mar 2004 04:33:30 +0000 |
parents | deb36081aaf2 |
children | 964d42c74ff7 |
files | src/util.c src/util.h |
diffstat | 2 files changed, 25 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/util.c Fri Mar 12 03:38:32 2004 +0000 +++ b/src/util.c Fri Mar 12 04:33:30 2004 +0000 @@ -2421,3 +2421,8 @@ return out; } +int +gaim_add_eight(int i) +{ + return (i + 8); +}
--- a/src/util.h Fri Mar 12 03:38:32 2004 +0000 +++ b/src/util.h Fri Mar 12 04:33:30 2004 +0000 @@ -121,13 +121,13 @@ /** * Converts a MIME header field string back to its readable equivalent - * according to RFC 2047. Basically, a header is plain ASCII and can - * contain any number of sections called "encoded-words." The format + * according to RFC 2047. Basically, a header is plain ASCII and can + * contain any number of sections called "encoded-words." The format * of an encoded word is =?ISO-8859-1?Q?Keld_J=F8rn_Simonsen?= * =? designates the beginning of the encoded-word * ?= designates the end of the encoded-word - * ? segments the encoded word into three pieces. The first piece is - * the character set, the second peice is the encoding, and the + * ? segments the encoded word into three pieces. The first piece is + * the character set, the second peice is the encoding, and the * third piece is the encoded text. * * @param str The string to convert back. @@ -375,10 +375,10 @@ /** * Compares two strings to see if the first contains the second as * a proper prefix. - * + * * @param s The string to check. * @param p The prefix in question. - * + * * @return TRUE if p is a prefix of s, otherwise FALSE. */ gboolean gaim_str_has_prefix(const char *s, const char *p); @@ -386,10 +386,10 @@ /** * Compares two strings to see if the second is a proper suffix * of the first. - * + * * @param s The string to check. * @param x The suffix in question. - * + * * @return TRUE if x is a a suffix of s, otherwise FALSE. */ gboolean gaim_str_has_suffix(const char *s, const char *x); @@ -595,10 +595,21 @@ * * @return The stripped string */ -char * gaim_text_strip_mnemonic(const char *in); +char *gaim_text_strip_mnemonic(const char *in); /*@}*/ +/** + * Adds 8 to something. + * + * Blame SimGuy. + * + * @param i The integer to add 8 to. + * + * @return i + 8 + */ +int gaim_add_eight(int i); + #ifdef __cplusplus } #endif