|
|
1.1 root 1: /* sprintaei.c - manage AE info */
2:
3: #ifndef lint
4: static char *rcsid = "$Header: /f/osi/acsap/RCS/sprintaei.c,v 7.0 89/11/23 21:22:18 mrose Rel $";
5: #endif
6:
7: /*
8: * $Header: /f/osi/acsap/RCS/sprintaei.c,v 7.0 89/11/23 21:22:18 mrose Rel $
9: *
10: *
11: * $Log: sprintaei.c,v $
12: * Revision 7.0 89/11/23 21:22:18 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: #include "isoaddrs.h"
33:
34: /* */
35:
36: char *sprintaei (aei)
37: AEI aei;
38: {
39: register char *cp;
40: char *bp;
41: static int i;
42: static char buffer1[BUFSIZ],
43: buffer2[BUFSIZ];
44:
45: bp = cp = (i++ % 2) ? buffer1 : buffer2;
46:
47: *cp++ = '<';
48:
49: if (aei -> aei_ap_title) {
50: vpushstr (cp);
51: vunknown (aei -> aei_ap_title);
52: vpopstr ();
53: cp += strlen (cp);
54: }
55: *cp++ = ',';
56:
57: if (aei -> aei_ae_qualifier) {
58: vpushstr (cp);
59: vunknown (aei -> aei_ae_qualifier);
60: vpopstr ();
61: cp += strlen (cp);
62: }
63: *cp++ = ',';
64:
65: if (aei -> aei_flags & AEI_AE_ID) {
66: (void) sprintf (cp, "%d", aei -> aei_ae_id);
67: cp += strlen (cp);
68: }
69: *cp++ = ',';
70:
71: if (aei -> aei_flags & AEI_AP_ID) {
72: (void) sprintf (cp, "%d", aei -> aei_ap_id);
73: cp += strlen (cp);
74: }
75: (void) strcpy (cp, ">");
76:
77: return bp;
78: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.