Paul Kelly writes:
> Lars Hecking wrote:
> > It doesn't have memcpy().
> > But I trust it did have bcopy()?
>> It did. I was trying to compile up GNU sh-utils at the time and memcpy()
> was one of the major stumbling blocks. bcopy() wasn't good enough it
> would seem.
This is from the latest fileutils, which are also maintained by
Jim Meyering.
#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy)
# define bcopy(from, to, len) memcpy ((to), (from), (len))
#endif
(Or define it the other way round, as needed)
bcopy() does even more than memcpy(), in most implementations it can
copy overlapping strings, which memcpy() cannot. The ANSI C function
for that is memmove().
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!