Thread: memcpy

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    38

    memcpy

    hello,
    can u explain what memcpy() does?
    and what is the difference btw memcpy() and memset()?

  2. #2
    Registered User
    Join Date
    May 2010
    Posts
    4,632
    Did you Google these functions? Did you read the documentation for these functions?

    Jim

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,318
    Quote Originally Posted by ueg1990 View Post
    what is the difference btw memcpy() and memset()?
    See the bolded part.

    "cpy" means copy, "set" means set. If that doesn't answer it, the internet will.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

  4. #4
    SAMARAS std10093's Avatar
    Join Date
    Jan 2011
    Location
    Nice, France
    Posts
    2,694
    Quote Originally Posted by ueg1990 View Post
    hello,
    can u explain what memcpy() does?
    memcpy will copy a sequence of bits from the source to the destination.How many bits?As many as the third argument of memcpy implies.But jim is right,you could see the documentation for these,it it pretty helpful

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. memcpy
    By m37h0d in forum C++ Programming
    Replies: 28
    Last Post: 04-12-2008, 09:10 PM
  2. memcpy()
    By Moni in forum C++ Programming
    Replies: 3
    Last Post: 09-05-2006, 05:31 AM
  3. memcpy
    By mbooka in forum C Programming
    Replies: 10
    Last Post: 02-28-2006, 02:25 AM
  4. memcpy use?
    By jerrykelleyjr in forum C++ Programming
    Replies: 21
    Last Post: 02-17-2005, 07:39 AM
  5. Help: About memcpy()
    By naruto in forum C Programming
    Replies: 41
    Last Post: 06-25-2004, 03:47 PM