edit readme and change comment style

This commit is contained in:
Night Kaly 2024-05-19 01:49:57 +01:00
parent 6f840d291b
commit deec94b04b
Signed by: night0721
GPG key ID: 957D67B8DB7A119B
2 changed files with 19 additions and 1 deletions

View file

@ -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
View file

@ -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++;