LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Re: SCO v Linux

[ILUG] Re: SCO v Linux

Lars Hecking lhecking at nmrc.ucc.ie
Thu Apr 8 14:53:19 IST 1999


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().





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell