~ubuntu-branches/ubuntu/precise/yagiuda/precise

« back to all changes in this revision

Viewing changes to src/test_stop.c

  • Committer: Bazaar Package Importer
  • Author(s): Joop Stakenborg
  • Date: 2005-08-22 20:20:13 UTC
  • Revision ID: james.westby@ubuntu.com-20050822202013-mhhxp4xirdxrdfx1
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifdef HAVE_STDLIB_H
 
2
#include <stdlib.h>
 
3
#endif
 
4
#include <stdio.h>
 
5
#include "yagi.h"
 
6
 
 
7
extern int errno;
 
8
 
 
9
void test_for_stop_file(void)
 
10
{
 
11
        if (   fopen("stop","r") !=NULL        )
 
12
        {
 
13
                fprintf(stderr,"Remove the file \"stop\" first\n");
 
14
                exit(1);
 
15
        }
 
16
        else
 
17
                errno=0;
 
18
}