SysV bcopy?

Dave Remien dave at pmafire.UUCP
Mon Mar 20 10:10:01 AEST 1989


In article <114 at sherpa.UUCP> rac at sherpa.UUCP (Roger A. Cornelius) writes:
>Is there a routine in the system V library analogous to BSD's bcopy().
>If not, can someone describe what bcopy() does ?   I'm running SCO Xenix
>if it matters.
>

Being fundamentally in favor of making life easier, I have a file that I
include in all BSD source at the top, which contains:

#define bcopy(s,d,n)	memcpy((d),(s),(n))
#define bcmp(s1,s2,n)	memcmp((s1),(s2),(n))
#define bzero(s,n)	memset((s),0,(n))

Works for me......... (I work almost exclusively in Sys V).

>Thanks,
>Roger
>-- 
>Roger Cornelius       rac at sherpa
>                      uunet!sherpa!rac


-- 
Dave Remien - WINCO Computer Engineering Group (only somewhat confused, now)
Work - 208-526-3523 Home - 208-524-1906 UUCP Path: ...!bigtex!pmafire!dave 
"How can you be in two places at once, when you're not anywhere at all..."



More information about the Comp.unix.questions mailing list