Thursday, July 9, 2009

How to code in c to show number of functions,variables,constants,... in a c program?

what is the c code i need to write to count the functions,arrays,variables,constants,dis... those function names,array names etc. in a c program

How to code in c to show number of functions,variables,constants,... in a c program?
you have to create a program that will read in the C code from a file. Then parse pref. line by line, then for each line look for keywords. There is your basic algorithm. It's just a parsing program.
Reply:There isn't a command for that. If you want a program to do that, you'll have to write it.





Rawlyn.


No comments:

Post a Comment