/*      BBS/DOS 汎用版 LOG-Cutter      by Gori
                 usage : logc bbs logfile
共通ヘッダ
*/
#include	<stdio.h>
#include	<stdlib.h>
#include	<string.h>
#include	<conio.h>
#include	<ctype.h>

#define		START		0x30   /* これは優先順位を表す */
#define		MMINUS		0x20
#define		MINUS		0x10
#define		PPLUS		0x05
#define		PLUS		0x02
#define		END			0x01

FILE *fopen();
extern FILE *deff,*logf;

/*-------------------------- main.c */
int		ldtocr(char *i,int k);
void	opendef(char *f);
int		setlddat(const char *bbs);
char	change_loop(char *p,char *logl);
void	change(char *p,int a);
int		main (int argc,char **argv);
/*-------------------------- etc.c */
void	help(int a);
void	chext(char *ch,const char *s);
void	putspc(int a);
/*-------------------------- ken.c  */
int		chusyu(const char *def_t,const char *log_t);
void	buftoset(char *p,int buf);
