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/oneShot/newClones/newClones.c src/hg/oneShot/newClones/newClones.c index 1d7096a..e77dabd 100644 --- src/hg/oneShot/newClones/newClones.c +++ src/hg/oneShot/newClones/newClones.c @@ -1,51 +1,51 @@ /* newClones - Find new clones. */ /* 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" #include "hash.h" #include "cheapcgi.h" #include "obscure.h" void usage() /* Explain usage and exit. */ { errAbort( "newClones - Find new clones\n" "usage:\n" " newClones old.lst new.lst\n" ); } void newClones(char *oldFile, char *newFile) /* newClones - Find new clones. */ { struct slName *oldList = readAllLines(oldFile); struct slName *newList = readAllLines(newFile); struct slName *el; struct hash *hash = newHash(0); for (el = oldList; el != NULL; el = el->next) { chopSuffix(el->name); hashAdd(hash, el->name, NULL); } for (el = newList; el != NULL; el = el->next) { chopSuffix(el->name); if (!hashLookup(hash, el->name)) printf("%s\n", el->name); } } int main(int argc, char *argv[]) /* Process command line. */ { cgiSpoof(&argc, argv); if (argc != 3) usage(); newClones(argv[1], argv[2]); return 0; }