Re: slave.c -- bcopy()??

From: Mikel Stous (
Date: 07/03/96

Steve wrote:
> On Wed, 3 Jul 1996, Leeman Strout wrote:
> > In the slave.c file that Jeremy sent across the list, there's a function 
> > called bcopy()... and well, aside from not having my references with me, 
> > I can't seem to figure out whether that's standard C or not.  Also can't 
> > figure out what it's supposed to do.  Anyone looked at the code and have 
> > a clue to hand out?
> Here's the Linux man page on bcopy:
> <snip>
> And Here is the SunOS manpage on bcopy:
> <snip>

bcopy, bzero, and bcmp all are standard on BSD

the equivalents for SYSV are:

#define bcopy(from,to,len)      memmove(to,from,len)
#define bzero(mem,len)          memset(mem,0,len)
#define bcmp(a,b,len)           memcmp(a,b,len)

FYI  :)


This archive was generated by hypermail 2b30 : 12/07/00 PST