Sat.Jun 25, 2016 - Fri.Jul 01, 2016

Remove 12
article thumbnail

memcpy (and friends) with NULL pointers

Imperial Violet

The C standard (ISO/IEC 9899:2011) has a sane-seeming definition of memcpy (section 7.24.2.1): The memcpy function copies n characters from the object pointed to by s2 into the object pointed to by s1. 12: c3 ret. Apart from a prohibition on passing overlapping objects, I think every C programmer understands that. f: c3 ret. +

Libraries 135