Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 615 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 615 Bytes

count lines

==================

Introduction

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_loc.c

Count lines of code in a given repository.

Compile and Run

gcc count_loc.c -o count_loc
./count_loc

Usage

  1. Clone the repository you want to count lines of code for.
  2. Run the corresponding executable
  3. Enter the path to the repository when prompted.
  4. The total number of lines of code will be displayed.