| 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 |