"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.16.7/cocci/memcpy.spatch" (4 Sep 2020, 152 Bytes) of package /linux/misc/dns/bind9/9.16.7/bind-9.16.7.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 @has_string_h@
    2 @@
    3 
    4 #include <string.h>
    5 
    6 @depends on has_string_h@
    7 
    8 expression D;
    9 expression S;
   10 expression N;
   11 @@
   12 
   13 - memcpy(D, S, N);
   14 + memmove(D, S, N);