Xref: utzoo comp.std.c:547 comp.windows.x:6609 Path: utzoo!attcan!uunet!lll-winken!lll-tis!ames!husc6!mit-eddie!genrad!jpn From: jpn@genrad.com (John P. Nelson) Newsgroups: comp.std.c,comp.windows.x Subject: Re: bcopy Message-ID: <14330@genrad.UUCP> Date: 9 Dec 88 15:51:35 GMT References: <9095@smoke.BRL.MIL> <9167@ihlpb.ATT.COM> <1356@astroatc.UUCP> Sender: news@genrad.UUCP Reply-To: jpn@teddy.UUCP (John P. Nelson) Organization: GenRad, Inc., Concord, Mass. Lines: 16 >What does the following mean? [What should it do?] [ Examples of the use of "bcopy" with overlapping regions deleted ] Considering that "bcopy" is not part of the ANSI standard, bcopy's behavior is not standardized. I would have to say that each vendor's implementation of bcopy is free to handle overlapping strings or not, depending on their preference. If the BSD 4.3 bcopy manual page doesn't explicitly say it handles overlapping copies, then you can't count on it. I would recommend the use of the the new ANSI standarized functions: "memcpy", which is guaranteed to be fast, and "memmove" which is guaranteed to work with overlapping regions. john nelson UUCP: {decvax,mit-eddie}!genrad!teddy!jpn smail: jpn@teddy.genrad.com