473,549 Members | 2,708 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

1 New Member
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
1 2705
dev7060
639 Recognized Expert Contributor
See this: https://bytes.com/topic/c/answers/85...ions-c-program

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

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

Similar topics

1
5422
by: Tony | last post by:
configure: error: Cannot find MySQL header files under /usr/local/src/mysql/shar e/ I have tried /usr/local/src/mysql/lib and tons of other dirs.
4
2113
by: Ahmed S. Badran | last post by:
Hi, Is there a tool that would parse a C file and tell me the list of functions that are being called in the file. The C file includes header files for the functions being used. Also is there a tool that would give me a full 'tree' of what functions are being called from a C file, that is if function A calls function B, which calls...
2
16887
by: Don | last post by:
Is is possible to find a count of the number of items in an enumeration? Something like: Public Enum MyEnum First = 1 Second = 2 Third = 3 End Enum
2
1361
by: RedJoy | last post by:
I am trying to "clean up" a solution with 10 projects and I was wondering if there is a way to "traverse" the source files to find not only the #includes but also remove #includes that are not needed for a file. -- Thanks, Michael S. Wells \|/ Software Engineer ^O-O^
9
5113
by: systemsvenkat | last post by:
Hi Could help me to provide a script to find a *.log files on file name W3* and need to delete them which are older than 4 days. (script should search entire c drive in windows with hidden files) please mail me the script to <REMOVED BY MOD> Thanks
10
5240
by: rohitscripts | last post by:
I was given a project(web application), which needed to be modified a little and to be maintained. But in the source code (that they had given me), there are only .aspx files and some .dll files(in bin). I could not find any .aspx.cs files. I thought they missed to gimme those files and asked them the ftp details to download the files....
3
2322
by: Alexander Vasilevsky | last post by:
Here, there is a challenge: to find the files must be on a local computer, have the same names. Get drives and folders to go through without problems. But what and how to store files while a search? http://www.alvas.net - Audio tools for C# and VB.Net developers + Christmas gift
8
2308
by: inFocus | last post by:
Hello, I am new to python and wanted to write something for myself where after inputing two words it would search entire drive and when finding both names in files name would either copy or move thoe files to a specified directory. But couple of attempts did not work as desired this is one of them. Could someone help fix it or maybe give...
2
1653
by: artemetis | last post by:
Hey there! I have a table with tool sizes. table: tblTool1 field: tl1Size tlSize contains the following info: small, medium, large There are thousands of tools and I need to run a query to get a count of how many small, medium, and large tools there are.
1
1230
by: devasimukesh | last post by:
sir i need a code in c++ it should count the Files and Directories in root folder with every folder information i need the below information 1) no of files and folder 2) how many files are there in each folder 3) with size of every folder and files it contains i a, using DEV-C ++ compiler.
0
7524
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7451
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
1
7475
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7812
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5372
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5089
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3483
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1944
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1061
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.