edit readme and change comment style
This commit is contained in:
parent
6f840d291b
commit
deec94b04b
2 changed files with 19 additions and 1 deletions
18
README.md
18
README.md
|
@ -2,6 +2,24 @@
|
|||
|
||||
Lines of Code Counter
|
||||
|
||||
# Usage
|
||||
```sh
|
||||
lcc <path> <path2> <path3> ...
|
||||
```
|
||||
|
||||
# Dependencies
|
||||
|
||||
- gcc
|
||||
|
||||
# Building
|
||||
|
||||
You will need to run these with elevated privilages.
|
||||
|
||||
```sh
|
||||
$ make
|
||||
# make install
|
||||
```
|
||||
|
||||
# Contributions
|
||||
Contributions are welcomed, feel free to open a pull request.
|
||||
|
||||
|
|
2
lcc.c
2
lcc.c
|
@ -38,7 +38,7 @@ void count_lines(const char *filename, language *lang, lang_stats *stat)
|
|||
stat->lines++;
|
||||
total_stats.lines++;
|
||||
char *line = buffer;
|
||||
while (isspace(*line)) line++; // Skip leading whitespace
|
||||
while (isspace(*line)) line++; /* Skip leading whitespace */
|
||||
|
||||
if (*line == '\0') {
|
||||
stat->blanks++;
|
||||
|
|
Loading…
Reference in a new issue