By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,469 Members | 1,050 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,469 IT Pros & Developers. It's quick & easy.

How to find the Count of functions in .c and .cpp files?

P: 1
I have a project containing .c and .cpp files in it. There are many folders present in it. The .c and .cpp files are lengthy and it is very tedious to count the number of functions manually. I want to know the count of functions in .c and .cpp files? Is there any automated script or parser available that can help me to count the number of functions?
Feb 19 '20 #1
Share this Question
Share on Google+
1 Reply

Expert 100+
P: 202
See this:

Also, source files are also text data. A program can be made to analyze all the .c and .cpp files (in the directory and sub-directories of the project) and count the number of functions.
Feb 19 '20 #2

Post your reply

Sign in to post your reply or Sign up for a free account.