Re: octstr_compare

Phuah Yee Keat <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
> What are think about the add following code into octstr.c/octstr_compare?

[snip]
> +    if ((ostr1 == NULL) && (ostr2 == NULL))
> +       return 0;
[snip]

returning 0 in this case will means the strings are equal, when they are 
not. I guess that the return value is not supposed to be used for error 
in this function (so as strcmp), hence the error checking is "asserted" 
instead of "checked".

Cheers,
Phuah Yee Keat
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.