6月1日学习
重拾起C语言的学习,再踏上编程之路!
一、函数
1.function
strcpy
Copy string
Copies the C string pointed by source into the array pointed by destination, including the terminating null character (and stopping at that point).
To avoid overflows, the size of the array pointed by destination shall be long enough to contain the same C string as source (including the terminating null character), and should not overlap in memory with source.
Parameters
destination
Pointer to the destination array where the content is to be copied.
source
C string to be copied.
2.memset
Fill block of memory
Sets the first num bytes of the block of memory pointed by ptr to the specified value (interpreted as an unsigned char).
3.自定义函数