[Users] Domain: is_from_local() is case sensitive in caching mode.

Bogdan-Andrei Iancu bogdan at voice-system.ro
Mon Mar 13 11:38:24 CET 2006


sorry, my mistake --- strncasesmp() is case insensitive....Monday 
morning fault :D

regards,
bogdan

Juha Heinanen wrote:

>Bogdan-Andrei Iancu writes:
>
> > indeed, the search through the cache is done case sensitive  via 
> > strncasesmp().
>
>i don't get it.  manual says:
>
>       The  strcasecmp() function compares the two strings s1 and s2, ignoring
>       the case of the characters.  It returns an integer less than, equal to,
>       or  greater than zero if s1 is found, respectively, to be less than, to
>       match, or be greater than s2.
>
>       The strncasecmp() function is similar,  except  it  only  compares  the
>       first n characters of s1.
>
>-- juha
>  
>





More information about the Users mailing list