Article View: comp.std.c
Article #5479Re: bcopy
From: John P. Nelson
Date: Fri, 09 Dec 1988 15:51
Date: Fri, 09 Dec 1988 15:51
17 lines
1205 bytes
1205 bytes
>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
Technical Details
Message-ID:
<14330@genrad.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!lll-tis!ames!husc6!mit-eddie!genrad!jpnReferences:
<9095@smoke.BRL.MIL> <9167@ihlpb.ATT.COM> <1356@astroatc.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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