Bcopy, bzero and bcmp on a not-Berkeley machine

Peter Radig peter at radig.UUCP
Mon Sep 25 08:36:03 AEST 1989


Is is possible to replace calls to `bcopy', `bzero' and `bcmp' by
the following macros:

	#ifdef USG
	#define bcmp(s1,s2,cnt)  memcpy(s1,s2,cnt)
	#define bcopy(fr,to,cnt) memcpy(to,fr,cnt)
	#define bzero(addr,cnt)  memset(addr,'\0',cnt)
	#endif USG

or are there restrictions?

Is there a little c-program etc. which helps me to test the compatibility?

Thnx,
Peter
-- 
Peter Radig        Voice: +49 69 746972
                   USENET: peter at radig.UUCP
                       or: uunet!unido!radig!peter



More information about the Comp.unix.wizards mailing list