home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Format / rfc1148 / f-RFCtoP2.c < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-18  |  1.3 KB  |  84 lines

  1. /* f-RFCtoP2.c: 822 -> P2 filter */
  2.  
  3. # ifndef lint
  4. static char Rcsid[] = "@(#)$Header: /xtel/pp/pp-beta/Format/rfc1148/RCS/f-RFCtoP2.c,v 6.0 1991/12/18 20:20:34 jpo Rel $";
  5. # endif
  6.  
  7. /*
  8.  * $Header: /xtel/pp/pp-beta/Format/rfc1148/RCS/f-RFCtoP2.c,v 6.0 1991/12/18 20:20:34 jpo Rel $
  9.  *
  10.  * $Log: f-RFCtoP2.c,v $
  11.  * Revision 6.0  1991/12/18  20:20:34  jpo
  12.  * Release 6.0
  13.  *
  14.  */
  15.  
  16.  
  17.  
  18. #include "head.h"
  19.  
  20.  
  21. /* ARGSUSED */
  22. main(argc, argv)
  23. char    **argv;
  24. int     argc;
  25. {
  26.     sys_init(argv[0]);
  27.     or_myinit ();
  28.  
  29.     if (RFCtoP2 (NULLCP, NULLCP, NULLCP) != OK)
  30.     {
  31.         fprintf (stderr, "RFC -> P2 failed\n");
  32.         exit (-1);
  33.     }
  34.  
  35. }
  36.  
  37.  
  38.  
  39. void    advise (what, fmt, a, b, c, d, e, f, g, h, i, j)
  40. char   *what,
  41.        *fmt,
  42.        *a,
  43.        *b,
  44.        *c,
  45.        *d,
  46.        *e,
  47.        *f,
  48.        *g,
  49.        *h,
  50.        *i,
  51.        *j;
  52. {
  53.     (void) fflush (stdout);
  54.  
  55.     fprintf (stderr, "RFCtoP2 test");
  56.     fprintf (stderr, fmt, a, b, c, d, e, f, g, h, i, j);
  57.     if (what)
  58.     (void) fputc (' ', stderr), perror (what);
  59.     else
  60.     (void) fputc ('\n', stderr);
  61.  
  62.     (void) fflush (stderr);
  63. }
  64.  
  65.  
  66. /* VARARGS 2 */
  67. void    adios (what, fmt, a, b, c, d, e, f, g, h, i, j)
  68. char   *what,
  69.        *fmt,
  70.        *a,
  71.        *b,
  72.        *c,
  73.        *d,
  74.        *e,
  75.        *f,
  76.        *g,
  77.        *h,
  78.        *i,
  79.        *j;
  80. {
  81.     advise (what, fmt, a, b, c, d, e, f, g, h, i, j);
  82.     _exit (1);
  83. }
  84.