Script for parsing a c file and finding a string pattern in each function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaahul
    New Member
    • Apr 2007
    • 1

    Script for parsing a c file and finding a string pattern in each function

    1. I would like to parse a C file and get the list of functions in that file.
    2. And then search for a string of the pattern "funcName(v ar)" in each of those functions. Is it possible to do such a thing in Perl. Are there any scripts available for doing the same?

    Thanks
  • KevinADC
    Recognized Expert Specialist
    • Jan 2007
    • 4092

    #2
    I don't know if this does want you want or not, maybe you can figure it out:

    Comment

    Working...