1cc8c6d3d7f2357898ad366c94b1f33a403a2aee angie Thu Dec 8 14:14:33 2016 -0800 Libifying isAllDigits from a handful of places into common.c. diff --git src/lib/blastParse.c src/lib/blastParse.c index 49026d6..07bd33f 100644 --- src/lib/blastParse.c +++ src/lib/blastParse.c @@ -44,41 +44,30 @@ verbose(WARN_LEVEL, "Warning: %s:%d: %s\n", bf->fileName, bf->lf->lineIx, message); } static void bfUnexpectedEof(struct blastFile *bf) /* generate error on unexpected EOF */ { errAbort("Unexpected end of file in %s\n", bf->fileName); } static void bfSyntax(struct blastFile *bf) /* General error message. */ { bfError(bf, "Can't cope with BLAST output syntax"); } -static boolean isAllDigits(char *s) -/* test if a string is all digits */ -{ -for (; *s != '\0'; s++) - { - if (!isdigit(*s)) - return FALSE; - } -return TRUE; -} - static boolean isAllDashes(char *s) /* test if a string is all dashes */ { for (; *s != '\0'; s++) { if (*s != '-') return FALSE; } return TRUE; } static char *bfNextLine(struct blastFile *bf) /* Fetch next line of input trying, or NULL if not found */ { char *line = NULL;