Jim Winstead wrote:
> Marcus Boerger <[EMAIL PROTECTED]> wrote:
> 
>>what about a new function called strnlen str*n*len which will
>>return the length of a string with a given maximum to avoid
>>problems with strings not zero terminated.
>>
> 
> why not just use memchr()?
> 

I agree. The code does not work with some encodings.
Try UCS-4, for example.

-- 
Yasuo Ohgaki


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to