1: /* popaka.c - generate POP entries for MMDF-II alias file */
   2: 
   3: #include <stdio.h>
   4: #include "../zotnet/bboards.h"
   5: 
   6: /*  */
   7: 
   8: /* ARGSUSED */
   9: 
  10: main (argc, argv)
  11: int     argc;
  12: char  **argv;
  13: {
  14:     struct bboard  *bb;
  15: 
  16:     if (!setbbinfo (POPUID, POPDB, 1)) {
  17:     fprintf (stderr, "setbbinfo(%s, %s, 1) failed -- %s\n",
  18:         POPUID, POPDB, getbberr ());
  19:     exit (1);
  20:     }
  21: 
  22:     (void) setbbent (SB_STAY);
  23:     while (bb = getbbent ())
  24:     process (bb);
  25:     (void) endbbent ();
  26: 
  27:     exit (0);
  28: }
  29: 
  30: /*  */
  31: 
  32: static  process (bb)
  33: struct bboard  *bb;
  34: {
  35:     printf ("%s: %s@pop\n", bb -> bb_name, bb -> bb_name);
  36: }

Defined functions

main defined in line 10; never used
process defined in line 32; used 1 times
  • in line 24
Last modified: 1986-04-21
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 841
Valid CSS Valid XHTML 1.0 Strict