Permalink
Browse files

Add check for structure usage in function.

The idea is for example to find where a structure can be memcpy
or memset by simply running for example:
 coccigrep -a memcpy -t Packet -o func src/stream-tcp.c
  • Loading branch information...
regit committed Aug 19, 2011
1 parent 306785b commit c442a0622509d441891688a2ee2cd829b70d891a
Showing with 13 additions and 0 deletions.
  1. +13 −0 src/data/func.cocci
View
@@ -0,0 +1,13 @@
@init@
typedef $type;
$type *p;
position p1;
@@
(
$attribut(p@p1, ...)
|
$attribut(..., p@p1, ...)
|
$attribut(..., p@p1)
)

0 comments on commit c442a06

Please sign in to comment.