|
|
1.1 ! root 1: /* set_find.c - find member of a set */ ! 2: ! 3: #ifndef lint ! 4: static char *rcsid = "$Header: /f/osi/psap/RCS/set_find.c,v 7.0 89/11/23 22:13:41 mrose Rel $"; ! 5: #endif ! 6: ! 7: /* ! 8: * $Header: /f/osi/psap/RCS/set_find.c,v 7.0 89/11/23 22:13:41 mrose Rel $ ! 9: * ! 10: * ! 11: * $Log: set_find.c,v $ ! 12: * Revision 7.0 89/11/23 22:13:41 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 <stdio.h> ! 31: #include "psap.h" ! 32: ! 33: /* */ ! 34: ! 35: PE set_find (pe, class, id) ! 36: register PE pe; ! 37: register PElementClass class; ! 38: register PElementID id; ! 39: { ! 40: register int pe_id; ! 41: register PE p; ! 42: ! 43: pe_id = PE_ID (class, id); ! 44: for (p = pe -> pe_cons; p; p = p -> pe_next) ! 45: if (PE_ID (p -> pe_class, p -> pe_id) == pe_id) ! 46: break; ! 47: ! 48: return p; ! 49: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.