Xref: utzoo comp.lang.c:22237 comp.unix.questions:16532 comp.unix.wizards:18321
Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!unido!radig!peter
From: peter@radig.UUCP (Peter Radig)
Newsgroups: comp.lang.c,comp.unix.questions,comp.unix.wizards
Subject: Bcopy, bzero and bcmp on a not-Berkeley machine
Keywords: bcopy bzero bcmp berkely system_v
Message-ID: <1155@radig.UUCP>
Date: 24 Sep 89 22:36:03 GMT
Organization: Peter Radig, Frankfurt, West Germany
Lines: 19

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@radig.UUCP
                       or: uunet!unido!radig!peter