blob: 7266d81ffd24adafc153ccc8222495555a90367b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/* cmd_srch.c - search a lookup table: return numeric value */
#ifndef lint
static char *rcsid = "$Header$";
#endif
/*
* $Header$
*
*
* $Log$
* Revision 1.1 1994/06/10 03:27:07 eichin
* autoconfed isode for kerberos work
*
* Revision 1.1 94/06/10 03:15:34 eichin
* autoconfed isode for kerberos work
*
* Revision 1.1 1994/05/31 20:33:38 eichin
* reduced-isode release from /mit/isode/isode-subset/src
*
* Revision 8.0 91/07/17 12:17:51 isode
* Release 7.0
*
*
*/
/*
* NOTICE
*
* Acquisition, use, and distribution of this module and related
* materials are subject to the restrictions of a license agreement.
* Consult the Preface in the User's Manual for the full terms of
* this agreement.
*
*/
/* LINTLIBRARY */
#include "manifest.h"
#include "cmd_srch.h"
/* */
/* map a string onto a value */
cmd_srch(str, cmd)
register char *str;
register CMD_TABLE *cmd;
{
extern char chrcnv[];
for(;cmd->cmd_key != NULLCP; cmd++)
if(chrcnv[*str] == chrcnv[*cmd->cmd_key] &&
lexequ(str, cmd->cmd_key) == 0)
return(cmd->cmd_value);
return(cmd->cmd_value);
}
|