|
|
1.1 ! root 1: /* rcmd_srch.c: search a lookup table: return string value */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/compat/RCS/rcmd_srch.c,v 7.0 89/11/23 21:23:22 mrose Rel $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/compat/RCS/rcmd_srch.c,v 7.0 89/11/23 21:23:22 mrose Rel $ ! 9: * ! 10: * ! 11: * $Log: rcmd_srch.c,v $ ! 12: * Revision 7.0 89/11/23 21:23:22 mrose ! 13: * Release 6.0 ! 14: * ! 15: */ ! 16: ! 17: /* ! 18: * NOTICE ! 19: * ! 20: * Acquisition, use, and distribution of this module and related ! 21: * materials are subject to the restrictions of a license agreement. ! 22: * Consult the Preface in the User's Manual for the full terms of ! 23: * this agreement. ! 24: * ! 25: */ ! 26: ! 27: ! 28: /* LINTLIBRARY */ ! 29: ! 30: #include "manifest.h" ! 31: #include "cmd_srch.h" ! 32: ! 33: /* */ ! 34: ! 35: char *rcmd_srch(val, cmd) ! 36: register int val; ! 37: register CMD_TABLE *cmd; ! 38: { ! 39: for(;cmd->cmd_key != NULLCP; cmd++) ! 40: if(val == cmd->cmd_value) ! 41: return(cmd->cmd_key); ! 42: return(NULLCP); ! 43: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.