I have a file with function prototypes like this:
int func1(type1 arg, int x);
type2 funct2(int z, char* buffer);
I want to create a script (bash, sed, awk, whatever) that will print
function = func1 // first argument type = type1// second argument type = int
function = func1 // first argument type = int// second argument type = char*
In other words, tokenize every line and print the function names and arguments. Additionally I would like to hold these tokens as variables to print them later, eg echo $4.