==================
This code counts the total number of lines of code in a given open-source project. It can be used to count lines of code in projects such as the Linux kernel or other software repositories.
Count lines of code in a given repository.
gcc count_loc.c -o count_loc
./count_loc
This is only for knowing how much rust code is there in a perticular project. Count Rust lines of code in a given repository. this is mainly for knowing for each release of linux kernel how much rust code is incorporated.
gcc countrust.c -o countrust
./countrust
- Clone the repository you want to count lines of code for.
- Run the corresponding executable
- Enter the path to the repository when prompted.
- The total number of lines of code will be displayed.