*BSD News Article 39861


Return to BSD News archive

Xref: sserve comp.unix.bsd:15699 comp.lang.c:88844 comp.unix.sys5.r3:2343
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!yarrina.connect.com.au!fulcrum.com.au!fulcrum.com.au!mrg
From: mrg@fulcrum.com.au (matthew green)
Newsgroups: comp.unix.bsd,comp.lang.c,comp.unix.sys5.r3
Subject: Re: how to completely get rid of bcopy, bzero, bcmp?
Date: 22 Dec 94 01:48:35 GMT
Organization: The Fulcrum Consulting Group
Lines: 21
Distribution: inet
Message-ID: <mrg.788060915@fulcrum.com.au>
References: <3bksus$fg4@spruce.cic.net> <MICHAELV.94Dec2213754@MindBender.HeadCandy.com> <1994Dec7.211430.3596@bfm.com>
NNTP-Posting-Host: wyvern.fulcrum.com.au
X-Newsreader: NN version 6.5.0 (NOV)


#ifdef HAVE_MEMMOVE
# define bcopy(a,b,c) memmove((b),(a),(c))
#else /* makes bcopy possibly not handle overlapping arguments */
# define bcopy(a,b,c) memcpy((b),(a),(c))
#endif

#define bzero(a,b) memset((a), 0, (b))
#define bcmp memcmp


is the right way to `fix' the bsd b* functions to work with system v.

.mrg.

-- 
matthew green      consultant    /\    the fulcrum consulting group
mrg@fulcrum.com.au                     12/10-16 queen st
voice: +61 3 621 2100                  melbourne vic 3000
  fax: +61 3 621 2724                  australia                 /\