echo.cpp

Go to the documentation of this file.
00001 /*****************************************************************************\
00002 *                                                                             *
00003 *  Name   : echo                                                              *
00004 *  Author : Chris Koeritz                                                     *
00005 *                                                                             *
00006 *  Purpose:                                                                   *
00007 *                                                                             *
00008 *    Simply echoes the arguments passed to the program similarly to the Unix  *
00009 *  echo program.  This is used as a lightweight replacement for the cygwin    *
00010 *  echo application, since we're getting rid of cygwin everywhere.  The MSYS  *
00011 *  version of echo is just a shell, but we need it as an app.                 *
00012 *                                                                             *
00013 *******************************************************************************
00014 * Copyright (c) 2006-$now By Author.  This program is free software; you can  *
00015 * redistribute it and/or modify it under the terms of the GNU General Public  *
00016 * License as published by the Free Software Foundation; either version 2 of   *
00017 * the License or (at your option) any later version.  This is online at:      *
00018 *     http://www.fsf.org/copyleft/gpl.html                                    *
00019 * Please send any updates to: fred@gruntose.com                               *
00020 \*****************************************************************************/
00021 
00022 #include <stdio.h>
00023 
00024 int main(int argc, char *argv[])
00025 {
00026   for (int i = 1; i < argc; i++) {
00027     if (i != 1) printf(" ");  // add a space between previous text and this.
00028     printf("%s", argv[i]);
00029   }
00030   printf("\n");
00031   return 0;
00032 }
00033 
00034 #ifdef __BUILD_STATIC_APPLICATION__
00035   // static dependencies found by buildor_gen_deps.sh:
00036 #endif // __BUILD_STATIC_APPLICATION__
00037 

Generated on Fri Nov 28 04:28:51 2008 for HOOPLE Libraries by  doxygen 1.5.1