1: /* $Header$ */
2:
3: /*
4: * Author: Peter J. Nicklin
5: */
6:
7: /*
8: * slget() returns a pointer to the next key in list slist, or null upon
9: * reaching end of list.
10: */
11: #include "null.h"
12: #include "slist.h"
13:
14: char *
15: slget(slist)
16: SLIST *slist; /* pointer to list head block */
17: {
18: char *key; /* key pointer */
19:
20: if (slist->curblk != NULL)
21: {
22: key = slist->curblk->key;
23: slist->curblk = slist->curblk->next;
24: return(key);
25: }
26: else
27: return(NULL);
28: }
Defined functions
slget
defined in line
14;
never used