1987-03-09 19:15:41 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1985-01-08 09:59:28 +00:00
|
|
|
#ifndef NORCSID
|
1994-06-24 11:31:16 +00:00
|
|
|
static char rcsid[]= "$Id$";
|
1985-01-08 09:59:28 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "param.h"
|
2013-05-10 11:04:21 +00:00
|
|
|
#include "extern.h"
|
1985-01-08 09:59:28 +00:00
|
|
|
|
|
|
|
int nstrings=0;
|
|
|
|
char *l_strings[MAXSTRINGS];
|
|
|
|
|
|
|
|
strlookup(str) char *str; {
|
|
|
|
register i;
|
|
|
|
extern char *mystrcpy();
|
|
|
|
|
|
|
|
for(i=0;i<nstrings;i++)
|
|
|
|
if (strcmp(str,l_strings[i])==0)
|
|
|
|
return(i);
|
|
|
|
NEXT(nstrings,MAXSTRINGS,"String table");
|
|
|
|
l_strings[i] = mystrcpy(str);
|
|
|
|
return(i);
|
|
|
|
}
|