This script reads a C-File and counts the source lines of code (SLOC).
Following kinds of lines are not counted as source lines of code:
3) empty lines
to run the file:
[code_lines_nb, comment_lines_nb, empty_lines_nb] = get_sloc_cfile = get_sloc_cfile('test.c')
- output also the number of comment lines and number of empty lines.