/* -*- mode: c -*- */
/* $Id: team_eof.c 3732 2006-12-09 05:46:16Z cher $ */

/* Copyright (C) 2003-2006 Alexander Chernov <cher@ejudge.ru> */

/*
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#include "checker_internal.h"

void
checker_out_eof(void)
{
  fscanf(f_out, " ");
  if (ferror(f_out))
    fatal_CF("Input error from output file");
  if (getc(f_out) != EOF)
    fatal_PE("Garbage in output file");
}

void
checker_team_eof(void)
{
  return checker_out_eof();
}

/*
 * Local variables:
 *  compile-command: "make"
 *  c-font-lock-extra-types: ("\\sw+_t" "FILE")
 * End:
 */
