I need to extract the names of functions defined in a C source file given as parameter to the script. I'm not very familiar to PowerShell but shouldn't be something like this:
If ($FileExists -eq $True)
{
select-string $args[0] -pattern "\(void\|double\|char\|int\) \.*(.*)"
}
select-string $args[0] -pattern "(void|double|char|int) \.*(.*)"works but how can I refer the name of the function only (something like linux-sed would be useful)