
`void memset(void destination, int character, size_t count);`
将destination指针指向的前count个字符设置为character。
返回destination的值。
`void memmove(void destination, const void source, size_t count);`
从source复制count字节的数据到destination。如果source和destination有重叠,函数能正确处理。
返回destination的值。
`void memcpy(void destination, const void source, size_t count);`
从source复制count字节的数据到destination,与memmove功能相似,但不能处理source和destination重叠的情况。
返回destination的值。
`void memchr(const void buffer, int character, size_t count);`
在buffer的前count个字节中查找第一次出现character的位置。找到后返回该位置的指针,否则返回NULL。
`void _memccpy(void destination, const void source, int character, size_t count);`
从source复制0个或多个字符到destination,当复制character或count个字符时停止。如果复制了character,则返回指向其后面位置的指针,否则返回NULL。
`int memcmp(const void buffer1, const void buffer2, size_t count);`
比较buffer1和buffer2的前count个字节。返回值小于0表示buffer1小于buffer2;等于0表示两者相等;大于0表示buffer1大于buffer2。
`int memicmp(const void buffer1, const void buffer2, size_t count);`
比较buffer1和buffer2的前count个字节,与memcmp不同,它不区分大小写。返回值同上。
`size_t strlen(const char string);`
获取字符串长度(不包括结尾的null字符)。返回字符串的长度。
`char strrev(char string);`
`char _strupr(char string);`
`char _strlwr(char string);`
