4898794edd81be5285ea6e544acbedeaeb31bf78 max Tue Nov 23 08:10:57 2021 -0800 Fixing pointers to README file for license in all source code files. refs #27614 diff --git src/hg/snp/snpLoad/trimHeader.c src/hg/snp/snpLoad/trimHeader.c index d4d8cad..86773ce 100644 --- src/hg/snp/snpLoad/trimHeader.c +++ src/hg/snp/snpLoad/trimHeader.c @@ -1,55 +1,55 @@ /* trimHeader */ /* Copyright (C) 2011 The Regents of the University of California - * See README in this or parent directory for licensing information. */ + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" void usage() /* Explain usage and exit. */ { errAbort( "trimHeader - Util for bosTau3.\n" "usage:\n" " trimHeader inputfile \n"); } void doTrimHeader(char *inputFileName) { FILE *outputFileHandle = mustOpen("trimHeader.out", "w"); struct lineFile *lf = lineFileOpen(inputFileName, TRUE); char *line; int lineSize; char *row[5], *contigId[2]; while (lineFileNext(lf, &line, &lineSize)) { if (line[0] != '>') { fprintf(outputFileHandle, "%s\n", line); continue; } chopString(line, ".", contigId, ArraySize(row)); fprintf(outputFileHandle, "%s\n", contigId[0]); } carefulClose(&outputFileHandle); lineFileClose(&lf); } int main(int argc, char *argv[]) { char *inputFileName = NULL; if (argc != 2) usage(); inputFileName = argv[1]; doTrimHeader(inputFileName); return 0; }