home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 406_01 / disked25 / source / files.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-13  |  1.1 KB  |  40 lines

  1. /***
  2. *files.h - definitions/declarations for file indexing functions.
  3. *
  4. *Copyright (c) 1991-1994, Gregg Jennings.  All wrongs reserved.
  5. *   P O Box 200, Falmouth, MA 02541-0200
  6. *
  7. *Purpose:
  8. *   [ANSI]
  9. *
  10. *******************************************************************************/
  11.  
  12. #ifndef GENERAL_H
  13. #include "general.h"
  14. #endif
  15.  
  16. #define FILE_LEN  13
  17.  
  18. struct files_t {
  19.      char name[FILE_LEN];
  20.      char dir;
  21.      int parent;
  22. };
  23.  
  24. extern struct files_t *files;
  25. extern unsigned int n_files,n_dirs;    /* number of files and directories */
  26. extern int *clusters;              /* pointer to array of cluster entries */
  27.  
  28. extern int initfiles(void);
  29. extern int pfile(char *file,unsigned int i);
  30. extern char *gfile(unsigned int i);
  31. extern int printfile(unsigned int);
  32. extern int jumpfile(register unsigned int cluster, register int direction);
  33. extern void mapfile(int i,int base);
  34. extern int homefile(int i);
  35. extern int endfile(int i);
  36. extern void mapdisk(int base);
  37. extern unsigned findfile(char *file);
  38. extern unsigned int get_avail_clusters(void);
  39. extern void mapfat12(int sec);
  40.