[34] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

Re: bcopy vs. memcpy

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Thu Oct 18 18:10:27 1990

Date: Thu, 18 Oct 90 18:03:35 EDT
From: Bill Sommerfeld <sommerfeld@apollo.com>
To: bstrand@poplar.cray.com
Cc: krb5-testers@ATHENA.MIT.EDU
In-Reply-To: Brad Strand's message of Thursday, October 18, 1990   5:56:03 pm (EDT)

(this is beating a dead horse at this point).

"memmove()" is part of the ANSI C standard; it's just like "memcpy()"
except that it Does The Right Thing on overlapping blocks.

   "bcopy() copies length bytes from string b1 to the string b2.
    Overlapping strings are handled correctly."

Ok, *on your system*, you can implement "memmove()" by calling
"bcopy()" (don't forget to switch the first and second arguments...).

The man pages for Domain/OS, and for 4.3BSD as installed at
MIT/Athena, have the first sentance, but not the second.  This is
evidence to me that the behavior not globally specified.

					- Bill


home help back first fref pref prev next nref lref last post