Date: Thu, 24 Aug 2000 12:55:51 -0400 Message-Id: <200008241655.MAA29183@envy.delorie.com> From: DJ Delorie To: djgpp AT delorie DOT com In-reply-to: (message from Radical NetSurfer on Wed, 23 Aug 2000 23:37:41 -0400) Subject: Re: memset behavior References: Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > There's no such thing as a memcat() routine... > why? How can binary data (data containing 0x00) be > CONCATED to accurately and properly return the > size (pointer growth) of a buffer? There is no memcat because there's no way to tell where the end of the binary data is by inspecting the binary data itself. You have to keep track of the length separately. Since you thus already have the length, you can just use memcpy (like "memcpy(buf+length, tmp, foo); length += foo;")