Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    What is the difference between the memcpy() and strcpy() functions in C?

    Knowledge Base
    2
    2
    1228
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      james_woody last edited by

      Is this is a true answer for this question?

      "The memcpy() function is used to copy a specified number of bytes from one memory to another. Whereas, the strcpy() function is used to copy the contents of one string into another.
      The memcpy() function operates on a memory instead of a value. Whereas, strcpy() function works on value, not memory."

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Is this thing relate with Bagisto?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post