X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/6c42153ad9362cc676ea66563bf400d7511b3b68..f053f0b49f317d31b337fe8d8b07612671831a52:/sbr/seq_nameok.c diff --git a/sbr/seq_nameok.c b/sbr/seq_nameok.c index 0eeddb38..3942b0e3 100644 --- a/sbr/seq_nameok.c +++ b/sbr/seq_nameok.c @@ -2,8 +2,6 @@ /* * seq_nameok.c -- check if a sequence name is ok * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -18,7 +16,7 @@ seq_nameok (char *s) char *pp; if (s == NULL || *s == '\0') { - advise (NULL, "empty sequence name"); + inform("empty sequence name"); return 0; } @@ -32,7 +30,7 @@ seq_nameok (char *s) strcmp (s, "last") && strcmp (s, "prev") && strcmp (s, "next"))) { - advise (NULL, "illegal sequence name: %s", s); + inform("illegal sequence name: %s", s); return 0; } @@ -40,8 +38,8 @@ seq_nameok (char *s) * First character in a sequence name must be * an alphabetic character ... */ - if (!isalpha (*s)) { - advise (NULL, "illegal sequence name: %s", s); + if (!isalpha ((unsigned char) *s)) { + inform("illegal sequence name: %s", s); return 0; } @@ -49,8 +47,8 @@ seq_nameok (char *s) * and can be followed by zero or more alphanumeric characters */ for (pp = s + 1; *pp; pp++) - if (!isalnum (*pp)) { - advise (NULL, "illegal sequence name: %s", s); + if (!isalnum ((unsigned char) *pp)) { + inform("illegal sequence name: %s", s); return 0; }