3 ms·
Important to note that strcpy_s doesn't truncate, it aborts your app if it fails: > "if the destination string size dest_size is too small, the invalid paramet
by Tempest1981 6y ago
Important to note that strcpy_s doesn't truncate, it aborts your app if it fails:
> "if the destination string size dest_size is too small, the invalid parameter handler is invoked"
> "The invalid parameter handler dispatch function calls the currently assigned invalid parameter handler. By default, the invalid parameter calls _invoke_watson, which causes the application to close and generate a mini-dump."
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/strcpy-s-wcscpy-s-mbscpy-s?view=msvc-160 https://docs.microsoft.com/en-us/cpp/c-runtime-library/refer...