There are huge source code with hundred files and hundred of thousands line of code and I have to find main function in this source code.
grep "main" ./*.c -RIl
Obviously this approach does not satisfy, because of huge output.
in source code, functions may be declared in this style
main(int argc, char *argv)
Also, number of such style is unknown.
So I'm asking how to find function not text. is there any searcher programs which is able to search C functions?
Maybe you will recommend some regular expression?