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/qa/getChroms.c src/hg/qa/getChroms.c index 6048126..bbbdec1 100644 --- src/hg/qa/getChroms.c +++ src/hg/qa/getChroms.c @@ -1,53 +1,53 @@ /* getChroms -- sample code */ /* Copyright (C) 2013 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 "chromInfo.h" #include "hdb.h" static char *db = NULL; void usage() /* Explain usage and exit. */ { errAbort( "getChroms - print chrom names\n" "usage:\n" " getChroms database\n"); } void getChroms() { char query[512]; struct sqlConnection *conn = hAllocConn(db); struct sqlResult *sr; char **row; struct chromInfo *el; sqlSafef(query, sizeof(query), "select chrom, size from chromInfo"); sr = sqlGetResult(conn, query); while ((row = sqlNextRow(sr)) != NULL) { el = chromInfoLoad(row); printf("chrom = %s, size = %d\n", el->chrom, el->size); } sqlFreeResult(&sr); hFreeConn(&conn); } int main(int argc, char *argv[]) { if (argc != 2) usage(); db = argv[1]; if (!hTableExists(db, "chromInfo")) errAbort("no chromInfo table in %s\n", db); getChroms(); return 0; }