blob: c526b4b5f0a9c721dcee5159c6f8a81525bbb832 (
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
|
/* seq_find.c - find an element in a sequence */
#ifndef lint
static char *rcsid = "$Header$";
#endif
/*
* $Header$
*
*
* $Log$
* Revision 1.1 1994/06/10 03:34:41 eichin
* autoconfed isode for kerberos work
*
* Revision 1.1 1994/06/01 00:38:45 eichin
* add psap too
*
* Revision 8.0 91/07/17 12:47:17 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 <stdio.h>
#include "psap.h"
/* */
PE seq_find (pe, i)
register PE pe;
register int i;
{
register PE p;
if (i >= pe -> pe_cardinal)
return pe_seterr (pe, PE_ERR_MBER, NULLPE);
for (p = pe -> pe_cons; p; p = p -> pe_next)
if (p -> pe_offset == i)
break;
return p;
}
|