Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10410 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4010 invoked by uid 1010); 12 Jun 2004 16:37:23 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 3966 invoked by uid 1007); 12 Jun 2004 16:37:23 -0000 To: internals@lists.php.net Date: Sat, 12 Jun 2004 19:36:40 +0300 References: <200406111055.20833.ilia@prohost.org> Organization: none Content-Type: text/plain; format=flowed; delsp=yes; charset=koi8-r MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/7.50 (Win32, build 3778) X-Posted-By: 217.23.116.150 Subject: Re: [PHP-DEV] str_repeat() patch From: valyala@tut.by ("Alexander Valyalkin") On Fri, 11 Jun 2004 10:55:20 -0400, Ilia Alshanetsky wrote: > Read your memcpy manpages > > "The memcpy() function copies n bytes from memory area src to memory > area dest. The memory areas may not overlap." > Well, I've read my manpages: The memcpy() function copies n bytes from memory area src to memory area dest. The memory areas may not overlap. Use memmove() if the memory areas do overlap. Pay attention on the LAST sentence. -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/