strncasecmp() not working correctly?
| From: | Sean R. Bright | Date: | Tue, 30 Jan 2001 22:35:08 +0000 |
| Subject: | strncasecmp() not working correctly? | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45379@lists.php.net to get a copy of this message | ||
I was just messing around with strncasecmp() and it doesn't seem to produce
the correct values.
For example:
echo strncasecmp("http://","http://www.php.net/",7);
Does not print 0 as expected.
I looked at the code and it doesn't seem to be too complicated a function.
Just wondering if anyone else has problems with it.
Thanks,
--
===================================================================
Sean Bright
elixer@erols.com / sean@seanbright.com / http://www.seanbright.com/
===================================================================