/*
 * This file is part of the OLC On-Line Consulting System.
 * It contains the procedure for printing the version number.
 *
 *	Lucien Van Elsen
 *      MIT Project Athena
 *
 * Copyright (C) 1991 by the Massachusetts Institute of Technology.
 * For copying and distribution information, see the file "mit-copyright.h".
 *
 *	$Source: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olc/clients/tty/t_version.c,v $
 *	$Id: t_version.c,v 1.1 1996/06/02 07:55:24 ghudson Exp $
 *	$Author: ghudson $
 */

#ifndef lint
#ifndef SABER
static char rcsid[] ="$Header: /afs/sipb.mit.edu/project/sipb-athena/repository/src/olc/clients/tty/t_version.c,v 1.1 1996/06/02 07:55:24 ghudson Exp $";
#endif
#endif

#include <mit-copyright.h>
#include <olc/olc.h>
#include <olc/olc_tty.h>
#include "version.h"

ERRCODE
t_version(Request)
     REQUEST *Request;
{
  char *output;
  int status;

  status = OVersion(Request,&output);
  printf("Server version: %s\n",output);
  printf("Client version: %s: %s\n",VERSION_STRING,VERSION_INFO);
  return(status);
}
