comparison src/protocols/oscar/util.c @ 13168:bdb8d7beb5a7

[gaim-migrate @ 15531] Sorry about that; the build bot is pickier than the static libgaim compilation I tested this on. I'll be sure to compile Gaim proper before committing in the future. committer: Tailor Script <tailor@pidgin.im>
author Evan Schoenberg <evan.s@dreskin.net>
date Tue, 07 Feb 2006 19:50:14 +0000
parents 7d31d61e6438
children f2431a7e33aa
comparison
equal deleted inserted replaced
13167:be0cd152691d 13168:bdb8d7beb5a7
216 if (isalpha(sn[0])) 216 if (isalpha(sn[0]))
217 return 0; 217 return 0;
218 return 1; 218 return 1;
219 } 219 }
220 220
221 /**
222 * Determine if a given screen name is an SMS number
223 * (i.e. it begins with a +).
224 *
225 * @sn A valid AIM or ICQ screen name.
226 * @return 1 if the screen name is an SMS number. Otherwise 0
227 * is returned.
228 */
229 faim_export int aim_sn_is_sms(const char *sn)
230 {
231 if (sn[0] != '+')
232 return 0;
233 return 1;
234 }
235
221 /* 236 /*
222 * int snlen(const char *) 237 * int snlen(const char *)
223 * 238 *
224 * This takes a screen name and returns its length without 239 * This takes a screen name and returns its length without
225 * spaces. If there are no spaces in the SN, then the 240 * spaces. If there are no spaces in the SN, then the