home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SNNSV32.ZIP / SNNSv3.2 / tools / sources / mkhead.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-25  |  1.1 KB  |  44 lines

  1. /*****************************************************************************
  2.   FILE           : mkhead.c
  3.   SHORTNAME      : 
  4.   SNNS VERSION   : 3.2
  5.  
  6.   PURPOSE        : write snns pattern file header
  7.   NOTES          :
  8.  
  9.   AUTHOR         : Ralf Huebner 
  10.   DATE           : 2.4.93
  11.  
  12.   CHANGED BY     : 
  13.   IDENTIFICATION : @(#)mkhead.c    1.3 2/28/94
  14.   SCCS VERSION   : 1.3
  15.   LAST CHANGE    : 2/28/94
  16.  
  17.              Copyright (c) 1990-1994  SNNS Group, IPVR, Univ. Stuttgart, FRG
  18.  
  19. ******************************************************************************/
  20.  
  21. #include <stdio.h>
  22. #include <time.h>
  23.  
  24.  
  25. void main(int argc, char *argv[])
  26.  
  27. {
  28.    time_t t;
  29.  
  30.    if ((argc != 4) || (int) strcmp(*++argv, "-h")==0 ) {
  31.       fprintf (stderr, "write snns pattern file header\n\n");
  32.       fprintf (stderr, "  usage: mkhead <#pats> <#in_units> <#out_units>\n\n");
  33.       exit(0);
  34.    }
  35.    time(&t);
  36.    printf ("SNNS pattern definition file V1.4\n");
  37.    printf ("generated at %s\n\n", ctime( &t));
  38.    printf ("No. of patterns     : %s\n", *argv);
  39.    printf ("No. of input units  : %s\n", *++argv);
  40.    printf ("No. of output units : %s\n", *++argv);
  41.    printf ("\n");
  42. }
  43.    
  44.