ack/util/ceg/defaults/pseudo/C_open.c

20 lines
284 B
C
Raw Normal View History

#define CODE_EXPANDER
#include <em.h>
1987-11-20 10:41:03 +00:00
#include <assert.h>
#include <system.h>
extern int busy;
int C_open( filename)
char *filename;
{
assert( !busy);
1988-05-03 13:03:07 +00:00
if ( !open_back( filename)) {
1987-11-20 10:41:03 +00:00
fprint( STDERR, "Couldn't open %s\n", filename);
1988-02-03 12:55:36 +00:00
return( 0);
1987-11-20 10:41:03 +00:00
}
else
return( 1);
}