Like Tree2Likes
  • 1 Post By jimblumberg
  • 1 Post By iMalc

memcpy

This is a discussion on memcpy within the C Programming forums, part of the General Programming Boards category; hello, can u explain what memcpy() does? and what is the difference btw memcpy() and memset()?...

  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
    2,681
    Did you Google these functions? Did you read the documentation for these functions?

    Jim
    Salem likes this.

  3. #3
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,288
    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.
    Salem likes this.
    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,675
    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, 01:25 AM
  4. memcpy use?
    By jerrykelleyjr in forum C++ Programming
    Replies: 21
    Last Post: 02-17-2005, 06:39 AM
  5. Help: About memcpy()
    By naruto in forum C Programming
    Replies: 41
    Last Post: 06-25-2004, 03:47 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21