Analog implementation Memcpy,memmove

Source: Internet
Author: User

  1. memcpy ()//Can be duplicated when memory does not overlap

    Prototype:void *memcpy ( void *dest, const void *src, size_t count );

    The first parameter is the target operand

    The second parameter is the number of the source operand

    The third parameter is the number of replicable

    650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/77/3E/wKioL1ZloDLBNbHmAABxv92XIoU784.png "title=" 1.PNG " alt= "Wkiol1zlodlbnbhmaabxv92xiou784.png"/>

  2. memmove ()  //memory overlap can be copied

    The second parameter is the source operand

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/77/3F/wKioL1ZloXqRixg8AAB5Q58A3Vk138.png "title=" 2.PNG " alt= "Wkiol1zloxqrixg8aab5q58a3vk138.png"/>


This article from "Together to see the Stars" blog, reproduced please contact the author!

Analog implementation Memcpy,memmove

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.