Annotation of 43BSDReno/contrib/mh/support/pop/popaka.c, revision 1.1.1.1

1.1       root        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: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.