home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 2 BBS / 02-BBS.zip / OS2PLST.SRC / REPORT.C < prev    next >
Text File  |  1989-07-16  |  3KB  |  68 lines

  1. /*
  2.                               Nodelist Parser
  3.  
  4.               This module was originally written by Bob Hartman
  5.                        Sysop of FidoNet node 1:132/101
  6.  
  7.    Spark Software, 427-3 Amherst St, CS 2032, Suite 232, Nashua, NH 03061
  8.  
  9.  This program source code is being released with the following provisions:
  10.  
  11.  1.  You are  free to make    changes to this source    code for use on your own
  12.  machine,  however,  altered source files may not be distributed without the
  13.  consent of Spark Software.
  14.  
  15.  2.  You may distribute "patches"  or  "diff" files for any changes that you
  16.  have made, provided that the "patch" or "diff" files are also sent to Spark
  17.  Software for inclusion in future releases of the entire package.    A "diff"
  18.  file for the source archives may also contain a compiled version,    provided
  19.  it is    clearly marked as not  being created  from the original source code.
  20.  No other  executable  versions may be    distributed without  the  consent of
  21.  Spark Software.
  22.  
  23.  3.  You are free to include portions of this source code in any program you
  24.  develop, providing:  a) Credit is given to Spark Software for any code that
  25.  may is used, and  b) The resulting program is free to anyone wanting to use
  26.  it, including commercial and government users.
  27.  
  28.  4.  There is  NO  technical support  available for dealing with this source
  29.  code, or the accompanying executable files.  This source  code  is provided
  30.  as is, with no warranty expressed or implied (I hate legalease).    In other
  31.  words, if you don't know what to do with it,  don't use it,  and if you are
  32.  brave enough to use it, you're on your own.
  33.  
  34.  Spark Software may be contacted by modem at (603) 888-8179 (node 1:132/101)
  35.  on the public FidoNet network, or at the address given above.
  36.  
  37. */
  38.  
  39. #include <stdio.h>
  40. #include <ctype.h>
  41. #include <sys/types.h>
  42. #include <sys/stat.h>
  43. #include <time.h>
  44.  
  45. #include "types.h"
  46. #include "externs.h"
  47.  
  48. void
  49. size_report ()
  50. {
  51.    printf ("Network Size Report:\n\n");
  52.    printf ("Total Nodes Processed        = %d\n", nnodes);
  53.    printf ("Nodes Deleted (Down)         = %d\n", ndown);
  54.    printf ("Nodes ReDirected to Host/Hub = %d\n", nredirect);
  55.    printf ("---------------------------------------\n");
  56.    nnodes = nnodes - ndown - nredirect;
  57.    printf ("Total Nodes Open for mail    = %d\n", nnodes);
  58.    printf ("Zone Coordinators Listed     = %d\n", nzones);
  59.    printf ("Regional Coordinators Listed = %d\n", nregions);
  60.    printf ("Network Coordinators Listed  = %d\n", nnets);
  61.    printf ("Hub Coordinators Listed      = %d\n", nhubs);
  62.    printf ("=======================================\n");
  63.    nnodes = nnodes - nzones - nregions - nnets - nhubs;
  64.    printf ("Total Independent Nodes      = %d\n\n", nnodes);
  65. }
  66.  
  67.  
  68.