memset_s报错C3861
时间: 2023-11-11 19:15:06 浏览: 152
引用中提到了Buffer is too small的问题,这个问题通常是由于使用了错误的参数导致的。在引用中,作者使用了错误的参数来调用memset_s函数,导致报错。正确的调用方式是将第三个参数设置为缓冲区大小的字节数。在引用中也提到了同样的问题,并给出了正确的代码示例。所以,问题是由于使用了错误的参数调用memset_s函数导致报错C3861。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [wcscpy_s 报错Buffer is too small](https://blog.csdn.net/xxxscxxxx/article/details/122144916)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [c++ 面试题 总结](https://download.csdn.net/download/rzvs8275161/1667752)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文