srclines



NAME

      srclines - count C and C++ source lines, with and without comments


SYNOPSIS

      srclines [files...]


DESCRIPTION

      The command srclines counts C and C++ source lines. If file arguments
      are given, these files are analyzed, otherwise input is taken from
      standard input.

      Both the total number of lines and the actual number of source lines
      (excluding blank lines and comments) are counted. Both C and C++
      comments are handled. (C++ comments, '//', should be very rare in C
      code.)

      The following kind of output is produced:

      Number of files:            4
      Uncommented/nonblank lines: 2410
      Total number of lines:      3052

      The "Number of files:" line is suppressed if input is taken from
      standard input.

    PARAMETERS
      files
           is a list of file names.


EXAMPLES

      1. srclines *.[hHcC]

      2. cat *.h | srclines