a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/utils/faSplit/t.c src/utils/faSplit/t.c index fa0acb4..55f8443 100644 --- src/utils/faSplit/t.c +++ src/utils/faSplit/t.c @@ -1,35 +1,34 @@ #pragma comment(exestr, "@(#) UCSC Hg $Id: t.c,v 1.2 2003/05/06 07:41:06 kate Exp $") /* Test program */ #include <stdio.h> -static char const rcsid[] = "$Id: t.c,v 1.2 2003/05/06 07:41:06 kate Exp $"; int countFaRecords(char *file) /* Count fasta records in a file */ { int c; FILE *f; int count = 0; int i = 0; if ((f = fopen(file, "r")) == NULL) { fprintf(stderr, "Couldn't open %s", file); perror(" "); return 0; } while ((c = getc(f)) != EOF) { if (c == '>') count++; } fclose(f); return count; } main(int argc, char *argv[]) { int count = countFaRecords("foo"); printf("Count=%d\n", count); }