usr.bin/m4/misc.c
/*
 * killdiv - get rid of the diversion files
 */
get rid of the diversion files
get rid of the diversion files
void
killdiv()
{
	register int n;
	for (n = 0; n < MAXOUT; n++)
		if (outfile[n] != NULL) {
			(void) fclose(outfile[n]);
			m4temp[UNIQUE] = n + '0';
#ifdef vms
			(void) remove(m4temp);
#else
			(void) unlink(m4temp);
#endif
		}
}
void killdiv ( ) { register int n ; for ( n = 0 ; n < MAXOUT ; n ++ ) if ( outfile [ n ] != NULL ) { ( void ) fclose ( outfile [ n ] ) ; m4temp [ UNIQUE ] = n + ' ' ; #ifdef vms ( void ) remove ( m4temp ) ; #else ( void ) unlink ( m4temp ) ; #endif } }
killdiv - get rid of the diversion files
killdiv - get rid of the diversion files