Re: New function (repost from php-cvs)

From: Date: Tue, 05 Mar 2002 23:01:23 +0000
Subject: Re: New function (repost from php-cvs)
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-80773@lists.php.net to get a copy of this message
Jim Winstead wrote:
Marcus Boerger <520072483730-0001@t-online.de> 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

« previous php.dev (#80773) next »