Lines Matching defs:src
106 * It is undefined behavior to call memcpy() with null dst or src, even if len is 0.
108 * memcpy(dst, src, 0);
109 * if (src) {
110 * printf("%x\n", *src);
112 * In this code the compiler can assume src is not null and omit the if (src) {...} check,
113 * unconditionally running the printf, crashing the program if src really is null.
116 static inline void* sk_careful_memcpy(void* dst, const void* src, size_t len) {
120 memcpy(dst,src,len);
125 static inline void* sk_careful_memmove(void* dst, const void* src, size_t len) {
129 memmove(dst,src,len);