e9242488b189378b8473f11299f1590b78ca280c galt Wed Sep 19 10:27:21 2018 -0700 unwanted test file t.c -- it was never fleshed, and does no more than faCount in any case. Has not been used since 2003. diff --git src/utils/faSplit/t.c src/utils/faSplit/t.c deleted file mode 100644 index 55f8443..0000000 --- src/utils/faSplit/t.c +++ /dev/null @@ -1,34 +0,0 @@ -#pragma comment(exestr, "@(#) UCSC Hg $Id: t.c,v 1.2 2003/05/06 07:41:06 kate Exp $") -/* Test program */ - -#include - - -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); -} -