Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / support / pop / RCS / popaka.c,v
1 head    1.5;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.5
9 date    92.12.15.00.20.22;      author jromine; state Exp;
10 branches;
11 next    1.4;
12
13 1.4
14 date    90.04.05.15.34.58;      author sources; state Exp;
15 branches;
16 next    1.3;
17
18 1.3
19 date    90.04.05.14.54.39;      author sources; state Exp;
20 branches;
21 next    1.2;
22
23 1.2
24 date    90.02.06.13.11.42;      author sources; state Exp;
25 branches;
26 next    1.1;
27
28 1.1
29 date    90.02.06.13.11.17;      author sources; state Exp;
30 branches;
31 next    ;
32
33
34 desc
35 @@
36
37
38 1.5
39 log
40 @endif sugar
41 @
42 text
43 @/* popaka.c - generate POP entries for MMDF-II alias file */
44 #ifndef lint
45 static char ident[] = "@@(#)$Id: popaka.c,v 1.4 1990/04/05 15:34:58 sources Exp jromine $";
46 #endif  /* lint */
47
48 #include <stdio.h>
49 #include "../zotnet/bboards.h"
50
51 static process();
52 /* \f */
53
54 /* ARGSUSED */
55
56 main (argc, argv)
57 int     argc;
58 char  **argv;
59 {
60     struct bboard  *bb;
61
62     if (!setbbinfo (POPUID, POPDB, 1)) {
63         fprintf (stderr, "setbbinfo(%s, %s, 1) failed -- %s\n",
64                 POPUID, POPDB, getbberr ());
65         exit (1);
66     }
67
68     (void) setbbent (SB_STAY);
69     while (bb = getbbent ())
70         process (bb);
71     (void) endbbent ();
72
73     exit (0);
74 }
75
76 /* \f */
77
78 static  process (bb)
79 struct bboard  *bb;
80 {
81     printf ("%s: %s@@pop\n", bb -> bb_name, bb -> bb_name);
82 }
83 @
84
85
86 1.4
87 log
88 @add ID
89 @
90 text
91 @d3 2
92 a4 2
93 static char ident[] = "@@(#)$Id:$";
94 #endif  lint
95 @
96
97
98 1.3
99 log
100 @add ID
101 @
102 text
103 @d3 1
104 a3 1
105 static char ident[] = "@@(#)$Id:";
106 @
107
108
109 1.2
110 log
111 @ANSI Compilance
112 @
113 text
114 @d2 3
115 @
116
117
118 1.1
119 log
120 @Initial revision
121 @
122 text
123 @d6 1
124 @