title: How do I extract a specific function from a C/C++ source code file for subsequent processing
body: <p>I am looking for an easy way to print out a specific function from within some C/C++ source code. For example, assume that test.c has several functions defined within it. I want to be able to print out the source code associated with only one of those functions.</p>
  
  <p>Edit: Sorry, I should be a bit more clear about my end goal. I want the function printed to the screen so I can use <code>wc</code> to grab the word count of this specific function. Also, I want this be part of a command line tool-chain so it isn't an option to manually enter files and select the text.</p>