<div dir="ltr"><div class="gmail_extra">Here is the definition for cmp_str(), for example:<br><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">static int cmp_str_f(struct sip_msg *msg, char *str1, char *str2 )<br>

{<br>    str s1;<br>    str s2;<br>    int ret;<br><br>    if(fixup_get_svalue(msg, (gparam_p)str1, &s1)!=0)<br>    {<br>        LM_ERR("cannot get first parameter\n");<br>        return -8;<br>    }<br>    if(fixup_get_svalue(msg, (gparam_p)str2, &s2)!=0)<br>

    {<br>        LM_ERR("cannot get second parameter\n");<br>        return -8;<br>    }<br>    ret = cmp_str(&s1, &s2);<br>    if(ret==0)<br>        return 1;<br>    if(ret>0)<br>        return -1;<br>

    return -2;<br>}<br></blockquote><div><br></div><div>i guess rather than the ability to use error codes, and the fact that one function does case sensitive and the other case insensitive, there's no tangible difference with == <br>

</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 11, 2014 at 5:30 PM, Alex Balashov <span dir="ltr"><<a href="mailto:abalashov@evaristesys.com" target="_blank">abalashov@evaristesys.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">str</blockquote></div><br><br></div><div class="gmail_extra"><br></div></div>