[sr-dev] How to convert to integer the string value of an AVP
Iñaki Baz Castillo
ibc at aliax.net
Thu Apr 22 16:56:45 CEST 2010
2010/4/22 Iñaki Baz Castillo <ibc at aliax.net>:
> num_pcre = (int)(long)group.s;
> LM_INFO("***debugging*** group.s = <%s> - group.len = <%i> -
> num_pcre = <%i>\n", group.s, group.len, num_pcre);
Of course printing group.s as %s is dangerous.
Problem fixed by using:
str2int(&group, &num_pcre);
Thanks a lot Daniel ;)
--
Iñaki Baz Castillo
<ibc at aliax.net>
More information about the sr-dev
mailing list