home *** CD-ROM | disk | FTP | other *** search
/ Sams Teach Yourself C in 21 Days (6th Edition) / STYC216E.ISO / mac / Examples / Day14 / stream.c < prev    next >
C/C++ Source or Header  |  2002-05-05  |  230b  |  15 lines

  1. /* Demonstrates the equivalence of stream input and output. */
  2. #include <stdio.h>
  3.  
  4. int main( void )
  5. {
  6.    char buffer[256];
  7.  
  8.    /* Input a line, then immediately output it. */
  9.  
  10.    puts(gets(buffer));
  11.  
  12.    return 0;
  13. }
  14.  
  15.