/*
 * suputils.h --
 *	Declarations and definitions for useful functions and macros.
 *
 * Identification:
 *	$Header: RCS/suputils.h,v 1.3 89/09/05 16:53:28 mao C_Demo_1 $
 */
#ifndef SupUtilsIncluded
#define SupUtilsIncluded

#include <stdio.h>
#include <sys/param.h>

#define	FlushOutput()	(void) fflush(stdout)
#define	FlushErrors()	(void) fflush(stderr);


#ifdef EBUG
#define	IFDEBUG(A)	A;
#else /* !EBUG */
#define	IFDEBUG(A)
#endif /* !EBUG */


/*
 * PathRemoveRecursively --
 *	Removes "absolutePath" and its descendants.
 */
extern
void
PathRemoveRecursively ARGS((
	char	*absolutePath;
));

/*
 *	PathGetRoot
 *
 *	Extract the file name from an absolute or relative path.
 */
extern
char *
PathGetRoot ARGS((
	char	*path
));

/*
 * ProcessExit --
 *	Useful as a signal handler (since it takes no arguments).
 */
extern
ProcessExit ARGS((
	void
));
#endif /* !SupUtilsIncluded */
