Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
usr
/
share
/
doc
/
git
/
contrib
/
coccinelle
/
//usr/share/doc/git/contrib/coccinelle/array.cocci
@@ type T; T *dst; T *src; expression n; @@ - memcpy(dst, src, n * sizeof(*dst)); + COPY_ARRAY(dst, src, n); @@ type T; T *dst; T *src; expression n; @@ - memcpy(dst, src, n * sizeof(*src)); + COPY_ARRAY(dst, src, n); @@ type T; T *dst; T *src; expression n; @@ - memcpy(dst, src, n * sizeof(T)); + COPY_ARRAY(dst, src, n);