Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!unmvax!pprg.unm.edu!hc!lll-winken!uunet!pdn!boake2!sherpa!rac From: rac@sherpa.UUCP (Roger A. Cornelius) Newsgroups: comp.unix.questions Subject: Re: SysV bcopy? Message-ID: <115@sherpa.UUCP> Date: 20 Mar 89 19:11:15 GMT References: <9876@smoke.BRL.MIL> Organization: Personal System Computing, St. Petersburg, FL Lines: 23 From article <9876@smoke.BRL.MIL>, by gwyn@smoke.BRL.MIL (Doug Gwyn ): > In article <114@sherpa.UUCP> rac@sherpa.UUCP (Roger A. Cornelius) writes: >>Is there a routine in the system V library analogous to BSD's bcopy(). > > memcpy() is analogous but its arguments are in a different order. > memcpy() is decribed under MEMORY(3C) in most System V PRMs. > bcopy() is described under BSTRING(3) in the 4BSD PRM. > In case you don;t have BSD documentation (why not?), I don't have access to a BSD machine. I'm just trying to compile the BSD indent program, which has a call to bcopy(). > just swap the first two arguments and change the name from bcopy to memcpy. > Be sure to include to get memcpy()'s type declared > correctly. Thanks. Other replies just said to use memcpy. They didn't mention the args were reversed. Thanks to everyone else who replied also. Roger -- Roger Cornelius rac@sherpa uunet!sherpa!rac