2001-01-19 03:30:16 +00:00
|
|
|
// some misc. file/disk routines
|
|
|
|
// Arne de Bruijn, 1998
|
|
|
|
#ifndef _D_IO_H
|
|
|
|
#define _D_IO_H
|
|
|
|
|
2003-11-26 12:26:36 +00:00
|
|
|
#ifndef _WIN32_WCE
|
2003-11-27 00:21:04 +00:00
|
|
|
#ifdef _WIN32
|
2001-01-19 03:30:16 +00:00
|
|
|
#include <io.h>
|
|
|
|
#else
|
|
|
|
#include <unistd.h>
|
|
|
|
#endif
|
2003-11-26 12:26:36 +00:00
|
|
|
#endif
|
2001-01-19 03:30:16 +00:00
|
|
|
|
|
|
|
extern long ffilelength(FILE *fh);
|
2003-11-26 12:26:36 +00:00
|
|
|
#if 0
|
2001-01-19 03:30:16 +00:00
|
|
|
extern long filelength(int fd);
|
2003-11-26 12:26:36 +00:00
|
|
|
#endif
|
2001-01-19 03:30:16 +00:00
|
|
|
unsigned long d_getdiskfree();
|
|
|
|
// remove extension from filename, doesn't work with paths.
|
|
|
|
void removeext(const char *filename, char *out);
|
|
|
|
|
2001-01-20 13:49:18 +00:00
|
|
|
unsigned long GetDiskFree();
|
|
|
|
|
2001-01-19 03:30:16 +00:00
|
|
|
#endif
|