3 * seq_nameok.c -- check if a sequence name is ok
16 if (s == NULL || *s == '\0') {
17 advise (NULL, "empty sequence name");
22 * Make sure sequence name doesn't clash with one
23 * of the `reserved' sequence names.
25 if (!(strcmp (s, "new") &&
27 strcmp (s, "first") &&
30 strcmp (s, "next"))) {
31 advise (NULL, "illegal sequence name: %s", s);
36 * First character in a sequence name must be
37 * an alphabetic character ...
40 advise (NULL, "illegal sequence name: %s", s);
45 * and can be followed by zero or more alphanumeric characters
47 for (pp = s + 1; *pp; pp++)
49 advise (NULL, "illegal sequence name: %s", s);