/*  @(#) $Header: /usr/local/scalawags_cvs/Scalawags/Frc2006/template/template_t.c,v 1.5 2006/02/22 00:02:59 abrown Exp $
 *
 * Test Philosophy:
 *    
 * Author:
 *	"fullname" <bozo@foo>
 */

#include <stdio.h>
#define MAIN
#include "../ifi_aliases.h"
#include "../ifi_default.h"
#include "../template.h"
#include "../user_routines.h"
tx_data_record txdata;
rx_data_record rxdata;

int main (void)
{
  int in1, in2, scanfreturn, lineno;
  char inpline[80], *returnval;

  returnval = inpline;
  lineno = 0;
  while( NULL !=		// Check if this is the end of the file.
	 (fgets(inpline, sizeof(inpline), stdin))) // Read a line of text
  {
    int result;

    lineno++;
    scanfreturn = sscanf(inpline, "%d%d", &in1, &in2); // Parse the input line.
    if( scanfreturn != 2)
    { // Number of scanned vars must match what we expect.
      printf("template_t: wrong # values line %d: '%s'\n", lineno, inpline);
      fflush(stdout);
    } else {
      result = template(in1,in2);
      printf("template(%d,%d) -> %d\n", in1, in2, result);
      fflush(stdout);
    } // else
  } // while
  return(0);
} // main
/*
 * $Log: template_t.c,v $
 * Revision 1.5  2006/02/22 00:02:59  abrown
 * I like parends around return param.  Its a style thing.
 *
 */


syntax highlighted by Code2HTML, v. 0.9.1