Path: utzoo!utgpu!cunews!cognos!jimp From: jimp@cognos.UUCP (Jim Patterson) Newsgroups: comp.sys.hp Subject: Re: BSD rindex, etc. Message-ID: <8910@cognos.UUCP> Date: 9 Oct 90 13:53:31 GMT References: <8155@milton.u.washington.edu> <1510008@hparc0.HP.COM> Reply-To: jimp@cognos.UUCP (Jim Patterson) Organization: Cognos Inc., Ottawa, Canada Lines: 18 In article <1510008@hparc0.HP.COM> graham@hparc0.HP.COM (Graham Eddy) writes: >you will want /usr/include/string.h (NOT strings.h) and you'll >probably decide to define a few macros rather than change all that >BSD-dependent source.. > >bcopy memcpy #define bcopy(s1,s2,n) memcpy((s2), (s1), n) You may have problems with this, since bcopy is guaranteed to handle overlapping strings properly whereas memcpy isn't. You should use memmove instead on HP-UX. (memmove will be in any ANSI-C-compliant library, but isn't on some non-ANSI systems e.g. Sun). -- Jim Patterson Cognos Incorporated UUCP:uunet!mitel!cunews!cognos!jimp P.O. BOX 9707 PHONE:(613)738-1440 3755 Riverside Drive NOT a Jays fan (not even a fan) Ottawa, Ont K1G 3Z4