home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fred Fish Collection 1.5
/
ffcollection-1-5-1992-11.iso
/
ff_progs
/
fileutil
/
sed.lzh
/
SED
/
DIR.H
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-16
|
702b
|
40 lines
/*
*
* BSD-like directory searching for Manx C
* Edwin Hoogerbeets 1989
*
*/
#include <libraries/dosextens.h>
#define MAXNAMELEN 31
struct direct {
ULONG d_ino;
USHORT d_reclen;
USHORT d_namlen;
char d_name[MAXNAMELEN + 1];
};
#if 0
typedef struct FileInfoBlock
dirent;
#define d_name fib_FileName
#endif
typedef struct DIR {
struct FileLock *lock; /* lock on the directory */
char name[MAXNAMELEN+1]; /* name of the directory */
struct FileInfoBlock *fib; /* pointer to temporary space for searching */
long loc; /* current location of the search */
} DIR;
extern DIR *opendir();
extern struct direct *readdir();
extern void closedir();