e70152e44cc66cc599ff6b699eb8adc07f3e656a
kent
  Sat May 24 21:09:34 2014 -0700
Adding Copyright NNNN Regents of the University of California to all files I believe with reasonable certainty were developed under UCSC employ or as part of Genome Browser copyright assignment.
diff --git src/hg/qa/countNib.c src/hg/qa/countNib.c
index 5d0e054..d3597e5 100644
--- src/hg/qa/countNib.c
+++ src/hg/qa/countNib.c
@@ -1,40 +1,43 @@
 /* countNib - count ACGT. */
+
+/* Copyright (C) 2011 The Regents of the University of California 
+ * See README in this or parent directory for licensing information. */
 #include "common.h"
 #include "dnaseq.h"
 #include "nib.h"
 
 
 void countNib(char *nibFile)
 /* countNib - Count ACGT. */
 {
 struct dnaSeq *seq;
 char *ptr;
 int i = 0;
 int a = 0;
 int c = 0;
 int g = 0;
 int t = 0;
 
 seq = nibLoadAll(nibFile);
 ptr = seq->dna;
 for (i=0; i<seq->size; i++)
     {
     if (ptr[i] == 'a') a++;
     else if (ptr[i] == 'c') c++;
     else if (ptr[i] == 'g') g++;
     else if (ptr[i] == 't') t++;
     }
 
 printf("a = %d\n", a);
 printf("c = %d\n", c);
 printf("g = %d\n", g);
 printf("t = %d\n", t);
 dnaSeqFree(&seq);  
 }
 
 int main(int argc, char *argv[])
 /* Process command line. */
 {
 countNib(argv[1]);
 return 0;
 }