Namespaces
Variants
Views
Actions

Talk:c/string/byte/memcpy

From cppreference.com

[edit] memcpy_s

This page states, "... and cause the entire destination array to be zeroed out ..." while the standard states, "... stores zeros in the first s1max characters of the object pointed to by s1 ...." See n1570:K.3.7.1.1/3. Can s1max be less than the size of the destination array? Newatthis (talk) 07:26, 22 July 2015 (PDT)

it can be both less and greater. Updated to say "destination range". --Cubbi (talk) 07:57, 22 July 2015 (PDT)

[edit] restrict

Why is there a restrict in the declaration, if it is a C++11 invention, not a C keyword?

It's a C keyword: c/language/restrict. There is no restrict in C++. --Cubbi (talk) 03:50, 12 November 2018 (PST)