2006-03-20 17:12:09 +00:00
|
|
|
// some misc. file/disk routines
|
|
|
|
// Arne de Bruijn, 1998
|
|
|
|
#ifndef _D_IO_H
|
|
|
|
#define _D_IO_H
|
|
|
|
|
2008-04-06 20:23:28 +00:00
|
|
|
#if (defined(__MSDOS__) && !defined(__DJGPP__)) || defined(_WIN32)
|
2006-03-20 17:12:09 +00:00
|
|
|
#include <io.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
extern long ffilelength(FILE *fh);
|
|
|
|
unsigned long d_getdiskfree();
|
|
|
|
// remove extension from filename, doesn't work with paths.
|
|
|
|
void removeext(const char *filename, char *out);
|
|
|
|
|
|
|
|
#endif
|