home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / security / xinetd / sio.1.5.6 / suite / tietest.c < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-09  |  550 b   |  26 lines

  1. /*
  2.  * (c) Copyright 1992 by Panagiotis Tsirigotis
  3.  * All rights reserved.  The file named COPYRIGHT specifies the terms 
  4.  * and conditions for redistribution.
  5.  */
  6.  
  7. static char RCSid[] = "$Id: tietest.c,v 7.1 1992/06/01 21:38:57 panos Exp $" ;
  8.  
  9. #include "sio.h"
  10. #include <stdio.h>
  11.  
  12. main()
  13. {
  14.     char *s ;
  15.  
  16.     Stie( 0, 1 ) ;
  17.     Sprint( 1, "Enter command --> " ) ;
  18.     s = Srdline( 0 ) ;
  19.     Sprint( 1, "Received command: %s\n", s ) ;
  20.     Suntie( 0 ) ;
  21.     Sprint( 1, "Enter command --> " ) ;
  22.     s = Srdline( 0 ) ;
  23.     Sprint( 1, "Received command: %s\n", s ) ;
  24.     exit( 0 ) ;
  25. }
  26.