static void getRnaSeqs(struct sqlConnection *conn, struct refSeqVerInfo *refSeqVerInfoLst, char *outFile) /* get request RNA sequences from database */ { FILE *fh = mustOpen(outFile, "w"); struct refSeqVerInfo *rsvi; for (rsvi = refSeqVerInfoLst; rsvi != NULL; rsvi = rsvi->next) processRnaSeq(fh, conn, rsvi); carefulClose(&fh); }
static void getRnaSeqs(struct sqlConnection *conn, struct hash *refSeqVerInfoTbl, char *outFile) /* get request RNA sequences from database */ { FILE *fh = mustOpen(outFile, "w"); struct hashCookie cookie = hashFirst(refSeqVerInfoTbl); struct hashEl *hel; while ((hel = hashNext(&cookie)) != NULL) { processRnaSeq(fh, conn, hel->val); } carefulClose(&fh); }