/* Copyright (C)1999 ASH multimedia lab. (http://ash.jp/) */ /**********************************/ /* ファイルアクセス共通モジュール */ /**********************************/ /* #include */ /* #include */ /* #include */ /* 読込みバッファ */ struct tbuf { char *dat; int len; int max; int size; int psize; }; /************************/ /* ファイルチェック処理 */ /************************/ /* 通常ファイル判定 */ extern int isfile(char *); /* ディレクトリ判定 */ extern int isdir(char *); /******************************************/ /* 先読みバッファ付きファイルアクセス関数 */ /******************************************/ /* バッファの初期処理 */ extern char *open_buf(struct tbuf *, int, int); /* バッファの読込み処理 */ extern int get_buf(struct tbuf *, FILE *); /* バッファの終了処理 */ extern void close_buf(struct tbuf *);