Quantcast
Channel: User Alex Lop. - Stack Overflow
Viewing all articles
Browse latest Browse all 39

Comment by Alex Lop. on Passing structure to parameter of type `const struct` does not produce a warning

$
0
0
Note that memcpy (bear->data, data, n); doesn't change the pointer bear->data but only the content to which it points. The prototype of memcpy guaranties it since the first operant is a pointer with const qualifier.

Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>