home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / clc / part01 / libs / src / sio / suite / tietest.c < prev   
Encoding:
C/C++ Source or Header  |  1993-11-28  |  669 b   |  29 lines

  1. /*
  2.  * (c) Copyright 1992, 1993 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 8.1 1993/03/13 01:24:07 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 1st command --> " ) ;
  18.     s = Srdline( 0 ) ;
  19.     Sprint( 1, "Received command: %s\n", s ) ;
  20.     Sprint( 1, "Enter 2nd command --> " ) ;
  21.     s = Srdline( 0 ) ;
  22.     Sprint( 1, "Received command: %s\n", s ) ;
  23.     Suntie( 0 ) ;
  24.     Sprint( 1, "Enter 3rd command --> " ) ;
  25.     s = Srdline( 0 ) ;
  26.     Sprint( 1, "Received command: %s\n", s ) ;
  27.     exit( 0 ) ;
  28. }
  29.