[PHP-DEV] Re: New function (repost from php-cvs)

2002-03-05 Thread Yasuo Ohgaki
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 doe

[PHP-DEV] Re: New function (repost from php-cvs)

2002-03-04 Thread Jim Winstead
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()? jim -- PHP Development Mailing List