# HG changeset patch # User Christian Hammond # Date 1079066010 0 # Node ID 33cc36f5a7a641dae33cc8494a7822b045614eda # Parent deb36081aaf2bb3b2ad98c5ed64b2a19ecfa8708 [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 diff -r deb36081aaf2 -r 33cc36f5a7a6 src/util.c --- 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); +} diff -r deb36081aaf2 -r 33cc36f5a7a6 src/util.h --- 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