Revision 12455,
372 bytes
checked in by danw, 26 years ago
(diff) |
This commit was generated by cvs2svn to compensate for changes in r12454,
which included commits to RCS files with non-trunk default branches.
|
Line | |
---|
1 | |
---|
2 | /* |
---|
3 | * seq_getnum.c -- find the index for a sequence |
---|
4 | * -- return -1 if sequence doesn't exist |
---|
5 | * |
---|
6 | * $Id: seq_getnum.c,v 1.1.1.1 1999-02-07 18:14:10 danw Exp $ |
---|
7 | */ |
---|
8 | |
---|
9 | #include <h/mh.h> |
---|
10 | |
---|
11 | |
---|
12 | int |
---|
13 | seq_getnum (struct msgs *mp, char *seqname) |
---|
14 | { |
---|
15 | int i; |
---|
16 | |
---|
17 | for (i = 0; mp->msgattrs[i]; i++) |
---|
18 | if (!strcmp (mp->msgattrs[i], seqname)) |
---|
19 | return i; |
---|
20 | |
---|
21 | return -1; |
---|
22 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.