a44421a79fb36cc2036fe116b97ea3bc9590cd0c
braney
  Fri Dec 2 09:34:39 2011 -0800
removed rcsid (#295)
diff --git src/utils/addCols/addCols.c src/utils/addCols/addCols.c
index 3739f19..6bf3a9f 100644
--- src/utils/addCols/addCols.c
+++ src/utils/addCols/addCols.c
@@ -1,51 +1,50 @@
 /* addCols - Add together columns. */
 #include "common.h"
 #include "linefile.h"
 
-static char const rcsid[] = "$Id: addCols.c,v 1.3 2003/05/06 07:41:03 kate Exp $";
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "addCols - Sum columns in a text file.\n"
   "usage:\n"
   "   addCols XXX\n");
 }
 
 void addCols(char *fileName)
 /* addCols - Add together columns. */
 {
 struct lineFile *lf;
 char *words[16];
 int wordCount;
 static double totals[16];
 int maxCount = 0;
 int i;
 
 if (sameString(fileName, "stdin"))
     lf = lineFileStdin(TRUE);
 else
     lf = lineFileOpen(fileName, TRUE);
 for (i=0; i<ArraySize(words); ++i)
      totals[i] = 0;
 while ((wordCount = lineFileChop(lf, words)) != 0)
     {
     if (maxCount < wordCount)
         maxCount = wordCount;
     for (i=0; i<wordCount; ++i)
         totals[i] += atof(words[i]);
     }
 for (i=0; i<maxCount; ++i)
      printf("%6.2f ", totals[i]);
 printf("\n");
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 if (argc != 2)
     usage();
 addCols(argv[1]);
 return 0;
 }