summaryrefslogtreecommitdiffstats
path: root/sys/libkern/strcasecmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Start copyright notice with /*-joel2010-04-071-1/+1
|
* Ha! This is a very interesting bug.pjd2005-08-081-4/+6
| | | | | | | | | | | I copied strcasecmp() from userland to the kernel and it didn't worked! I started to debug the problem and I find out that this line: while (tolower(*us1) == tolower(*us2++)) { was adding _3_ bytes to 'us2' pointer. Am I loosing my minds here?!... No, in-kernel tolower() is a macro which uses its argument three times. Bad tolower(9), no cookie.
* Add strcasecmp() and strncasecmp() to libkern and connect to the build.pjd2005-08-081-0/+69
OpenPOWER on IntegriCloud