I'm having trouble knowing how to develop a function that the command line will count and display the number of commented lines from another program in .c, for example:
Counter ProgramExample.c -c
The -c argument will call the function to count the line, any other argument will report invalid.
However it is necessary to do in different files what I have already done was this. This function has other arguments, but the important thing is just the count of rows (this function is so pq was the "recommended" in the work).
The comments that can be counted must be that of a line // or block / * * / those that are after some other action does not have to be counted, for example:
// print hello