Edit

Share via


strnset, wcsnset

The Microsoft-specific function names strnset and wcsnset are deprecated aliases for the _strnset and _wcsnset functions. By default, they generate Compiler warning (level 3) C4996. The names are deprecated because they don't follow the Standard C rules for implementation-specific names. However, the functions are still supported.

We recommend you use _strnset and _wcsnset or the security-enhanced _strnset_s and _wcsnset_s functions instead. Or, you can continue to use these function names, and disable the warning. For more information, see Turn off the warning and POSIX function names.