OS4 DepotLogo by Nickman 
(anonymous IP:,2193) 

   Bug tracker
   Locale browser


   o Audio (343)
   o Datatype (51)
   o Demo (203)
   o Development (596)
   o Document (22)
   o Driver (97)
   o Emulation (147)
   o Game (1004)
   o Graphics (497)
   o Library (115)
   o Network (232)
   o Office (66)
   o Utility (923)
   o Video (69)

Total files: 4365

Full index file
Recent index file



Support the site

 Readme for:  Development » Utility » loccounter.lha


Description: Simple SLOC counter for C/C+
Download: loccounter.lha       (TIPS: Use the right click menu if your browser takes you back here all the time)
Size: 72kb
Version: 3.4
Date: 27 Jul 2005
Author: Steven Solie
Submitter: Steven Solie
Email: ssolie/telus net
Homepage: http://www3.telus.net/ssolie/
Category: development/utility
Replaces: development/utility/loccounter.lha
License: Freeware
Distribute: yes
Min OS Version: 4.0
FileID: 912
Comments: 0
Snapshots: 0
Videos: 0
Downloads: 209  (Current version)
211  (Accumulated)
Votes: 0 (0/0)  (30 days/7 days)

Show comments Show snapshots Show videos Show content Show crashlogs Replace file 
This is a simple source lines of code (SLOC) counter for C and C++.
It counts only lines of source code and skips all comments and white
space. The counter is also capable of counting rcsdiff/diff files
and will output the total added and deleted LOC.


FILE  - one or more source files or patterns
TOTAL - display only the final totals
DIFF  - count a difference file output from rcsdiff/diff
QUICK - output only the total to stdout useful for scripting


3.4 - Now uses buffered I/O exclusively
    - Fixed exception catching
    - Removed const_casts thanks to new dos.library headers
    - Compiled with latest SDK

3.2 - Fixed difference counting blank lines
    - Fixed broken LOC counting of // lines

3.1 - Fixed long standing bug in eatWhite()
    - Disabled sync_with_stdio() due to GCC 3.4.1 bug
    - Changed line buffer into a vector
    - Replaced a few explicit loops with algorithms

3.0 - Initial OS4 release

Copyright © 2004-2024 by Björn Hagström All Rights Reserved