memset
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <string.h> 中定义
|
||
| void* memset( void* dest, int ch, size_t count ); |
||
ch的值转换unsigned char,并将其复制到每个count的第一个字符的对象所指向的dest. 原文:
Converts the value
ch to unsigned char and copies it into each of the first count characters of the object pointed to by dest. 目录 |
[编辑] 参数
| dest | - | 指针指向的对象来填充
|
| ch | - | 填充字节
|
| count | - | 数字节填充
|
[编辑] 返回值
dest
[编辑] 示例
| 本章尚未完成 原因:暂无示例 |
[编辑] 另请参阅
| 一个缓冲区拷贝到另一个地方 (函数) | |
| C++ documentation for memset
| |