Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!munnari.oz.au!uhccux!quonset!jwright From: jwright@cfht.hawaii.edu (Jim Wright) Newsgroups: comp.sys.hp Subject: Re: BSD rindex, etc. Message-ID: Date: 9 Oct 90 23:39:43 GMT References: <8155@milton.u.washington.edu> <1510008@hparc0.HP.COM> Sender: news@uhccux.uhcc.Hawaii.Edu Lines: 11 graham@hparc0.HP.COM (Graham Eddy) writes: >#define bcopy(s1,s2,n) memcpy((s2), (s1), n) Not quite so easy. bcopy() is defined so that overlapping strings are handled correctly. For memcpy(), if copying takes place between objects that overlap, the behavior is undefined. -- Jim Wright jwright@cfht.hawaii.edu Canada-France-Hawaii Telescope Corp.