home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / misc / volume34 / fsp / part04 / fver.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-18  |  1018 b   |  33 lines

  1.     /*********************************************************************\
  2.     *  Copyright (c) 1991 by Wen-King Su (wen-king@vlsi.cs.caltech.edu)   *
  3.     *                                                                     *
  4.     *  You may copy or modify this file in any manner you wish, provided  *
  5.     *  that this notice is always included, and that you hold the author  *
  6.     *  harmless for any loss or damage resulting from the installation or *
  7.     *  use of this software.                                              *
  8.     \*********************************************************************/
  9.  
  10. #include <stdio.h>
  11. #include "client_def.h"
  12.  
  13. main(argc,argv,envp)
  14.     int argc;
  15.     char **argv,**envp;
  16. {
  17.     UBUF *ub;
  18.  
  19.     if(argc == 1)    /* no arg supplied, get version string of server */
  20.     {
  21.     env_client();
  22.     ub = client_interact(CC_VERSION,0L, 0,NULLP, 0,NULLP);
  23.     printf("FSP version: %s\n",ub->buf);
  24.     client_done();
  25.  
  26.     } else
  27.     {
  28.     printf("Local FSP version: %s\n",VERSION_STR);
  29.     }
  30.  
  31.     exit(0);
  32. }
  33.