comparison src/protocols/gg/utils.h @ 12224:e84fbd0be612

[gaim-migrate @ 14526] Bartosz Oler suggested this change to strtol() in ggp_str_to_uin(). I asked if it was really necessary... (17:00:29) Bartosz Oler (liar): Hm. UINs are base 10 numbers. And it might be hard to trace a bug if user will accidentally type his number with a leading zero. I see no usecase for ggp_str_to_uin with octal numbers. That seems reasonable to me. I cleaned up the documentation for this function a little. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Fri, 25 Nov 2005 17:22:54 +0000
parents 8724718d387f
children 508512caa22e
comparison
equal deleted inserted replaced
12223:546c292b7f98 12224:e84fbd0be612
37 37
38 #include "gg.h" 38 #include "gg.h"
39 39
40 40
41 /* 41 /*
42 * Convert string to number. Check wheter a given 42 * Convert a base 10 string to a UIN.
43 * string is a correct UIN.
44 * 43 *
45 * Return UIN or 0 if an error occurred. 44 * @param str The string to convert
45 * @return UIN or 0 if an error occurred.
46 */ 46 */
47 uin_t 47 uin_t
48 ggp_str_to_uin(const char *text); 48 ggp_str_to_uin(const char *str);
49 49
50 /** 50 /**
51 * Convert enconding of a given string. 51 * Convert enconding of a given string.
52 * 52 *
53 * @param locstr Input string. 53 * @param locstr Input string.