/***************************************************************************
 *  Columbia University Introduction to Computer Programming in C COMS 1003
 *  Echo stdin to stdout 
 *
 *  Copyright (C) 2005 Michael E. Locasto
 *
 *  All rights reserved.
 *
 * $Id: echoin.c,v 1.1 2005/10/25 15:09:15 locasto Exp $
 **************************************************************************/

#include <stdio.h>

/**
 * This program simply dumps the stdin to stdout.
 *
 * 
 */
int main(int argc, char* argv[])
{
   int c = 0;
   int length = 0;
   
   while( (c=getc(stdin))!=EOF )
   {
     if('\n'!=c)
     {
       putchar(c);
     }
      length++;
   }
   return length;
}
