Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!lll-winken!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.unix.questions Subject: Re: SysV bcopy? Keywords: bcopy SysV BSD Message-ID: <1189@auspex.UUCP> Date: 21 Mar 89 20:15:24 GMT References: <114@sherpa.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Distribution: na Organization: Auspex Systems, Santa Clara Lines: 18 >Is there a routine in the system V library analogous to BSD's bcopy(). "memcpy". The differences are: 1) the first and second arguments are reversed: bcopy(from, to, count); becomes memcpy(to, from, count); 2) "memcpy" makes no guarantees that it'll work right if "from" and "to" overlap; I don't have the 4.3-tahoe manual page handy to see whether it guarantees that it'll work, but I think most implementations do guarantee that, and some code relies on it working. (The SunOS "bcopy" manual page says that "Overlapping strings are handled correctly.")