bcopy and bzero on AT&T sysV
Conor P. Cahill
cpcahil at virtech.uucp
Fri Jun 15 09:38:37 AEST 1990
In article <213 at cti1.UUCP> kmeek at cti1.UUCP (Meek) writes:
>I am trying to compile a C program that uses bcopy() and bzero()
>functions. The linker bombs because it doesn't know bcopy and bzero.
Use the following:
#define bzero(ptr,cnt) memset(ptr,'\0',cnt)
#define bcopy(src,dest,cnt) memcpy(dest,src,cnt)
Note that memcpy is not guarranteed to handle overlapping moves, while
bcopy is assumed to by some programs. I have used these #defines on
lots of net code without any problems.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.sys.att
mailing list