Mercurial > hg > Applications > mh
view support/pop/popaka.c @ 17:76d91e545ea8 default tip
addrsbr and dtimep fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 24 Nov 2014 14:49:25 +0900 |
parents | 441a2190cfae |
children |
line wrap: on
line source
/* popaka.c - generate POP entries for MMDF-II alias file */ #ifndef lint static char ident[] = "@(#)$Id: popaka.c,v 1.1.1.1 2005/04/18 14:46:07 kono Exp $"; #endif /* lint */ #include <stdio.h> #include "../zotnet/bboards.h" static process(); /* */ /* ARGSUSED */ main (argc, argv) int argc; char **argv; { struct bboard *bb; if (!setbbinfo (POPUID, POPDB, 1)) { fprintf (stderr, "setbbinfo(%s, %s, 1) failed -- %s\n", POPUID, POPDB, getbberr ()); exit (1); } (void) setbbent (SB_STAY); while (bb = getbbent ()) process (bb); (void) endbbent (); exit (0); } /* */ static process (bb) struct bboard *bb; { printf ("%s: %s@pop\n", bb -> bb_name, bb -> bb_name); }