SysV bcopy?

Nick Crossley ndjc at ccicpg.UUCP
Fri Mar 24 03:30:52 AEST 1989


One other point which no one else seems to have raised yet: the return
value.  memcpy, like strcpy, returns its first argument as a return
value.  No man page for bcopy that I have seen mentions a return value,
so this is not guaranteed.

So, as earlier posters have mentioned, bcopy can usually be replaced by
memcpy or memmove, but the reverse is probably only true if the return
value of memcpy is not used.
-- 

<<< standard disclaimers >>>
Nick Crossley, CCI, 9801 Muirlands, Irvine, CA 92718-2521, USA. (714) 458-7282
uunet!ccicpg!nick  /  nick at ccicpg.UUCP



More information about the Comp.unix.questions mailing list