a44421a79fb36cc2036fe116b97ea3bc9590cd0c
braney
  Fri Dec 2 09:34:39 2011 -0800
removed rcsid (#295)
diff --git src/utils/aveCols/aveCols.c src/utils/aveCols/aveCols.c
index 11ffa65..9e609d4 100644
--- src/utils/aveCols/aveCols.c
+++ src/utils/aveCols/aveCols.c
@@ -1,54 +1,53 @@
 /* aveCols - Add together columns. */
 #include "common.h"
 #include "linefile.h"
 
-static char const rcsid[] = "$Id: aveCols.c,v 1.3 2003/05/06 07:41:04 kate Exp $";
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "aveCols - average together columns\n"
   "usage:\n"
   "   aveCols file\n"
   "File may be stdin.");
 }
 
 void aveCols(char *fileName)
 /* aveCols - Add together columns. */
 {
 struct lineFile *lf;
 char *words[16];
 int wordCount;
 double totals[16];
 int maxCount = 0;
 int i;
 int lineCount = 0;
 
 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]);
     ++lineCount;
     }
 for (i=0; i<maxCount; ++i)
      printf("%7.3f ", totals[i]/lineCount);
 printf("\n");
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 if (argc != 2)
     usage();
 aveCols(argv[1]);
 return 0;
 }