[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff between strnicmp() and strncasecmp()?



On 10/2/07, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
>   maybe i'm just missing something obvious, but is there any
> difference between the above routines defined in lib/string.c?  they
> both appear to be length-limited, case-insensitive string
> comparisons.

I think they're the same, too, but both there for historical reasons.
It seems strnicmp() was there from the beginning of time, and
strncasecmp() came later. It is worth noting that strnicmp() is not
described in POSIX or ANSI, however.

Vegard

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ