/***************************************************************************
 *  Columbia University Introduction to Computer Programming in C COMS 1003
 *  Program to Demonstrate Interpreting command line arguments
 *
 *  Copyright (C) 2005 Michael E. Locasto
 *
 *  All rights reserved.
 *
 * $Id: shoutarg.c,v 1.1 2005/09/21 20:00:26 locasto Exp $
 **************************************************************************/

#include <stdio.h>
#include <string.h>

/**
 * This program simply prints the message 'shout' if the --shout argument
 * was supplied to it.
 * 
 */
int main(int argc, char* argv[])
{
   if(argc==2)
   {
      if(0==strncmp(argv[1],"--shout",7))
      {
         printf("shout\n");
      }
   }

   return 0;
}
