Memset Definition and use

后端 未结 6 687
失恋的感觉
失恋的感觉 2020-12-12 16:24

What\'s the usefulness of the function memset()?.

Definition: Sets the first num bytes of the block of memory pointed by

6条回答
  •  没有蜡笔的小新
    2020-12-12 16:52

    memset- set bytes in memory

    Synopsis-

    #include
    

    void *memset(void *s,int c,size_t n)

    Description- The memset() function shall copy c (converted to an unsigned char) into each of the first n bytes of the object pointed to by s. Here for the above function , the memset() shall return s value.

提交回复
热议问题