10
** PSIO_TOCSCAN(): Scans the TOC for a particular keyword and returns either
11
** a pointer to the entry or NULL to the caller.
16
psio_tocentry *psio_tocscan(unsigned int unit, char *key)
18
psio_tocentry *this_entry;
20
if(key == NULL) return(NULL);
22
if((strlen(key)+1) > PSIO_KEYLEN) psio_error(unit,PSIO_ERROR_KEYLEN);
24
this_entry = psio_unit[unit].toc;
26
while(this_entry != NULL) {
27
if(!strcmp(this_entry->key,key)) return(this_entry);
28
this_entry = this_entry->next;