home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / educatio / xcoral16.zip / FILE_DIC.H < prev    next >
C/C++ Source or Header  |  1993-01-15  |  2KB  |  64 lines

  1. /*
  2. ** Copyright 1989, 1992 by Lionel Fournigault
  3. **
  4. ** Permission to use, copy, and distribute for non-commercial purposes,
  5. ** is hereby granted without fee, providing that the above copyright
  6. ** notice appear in all copies and that both the copyright notice and this
  7. ** permission notice appear in supporting documentation.
  8. ** The software may be modified for your own purposes, but modified versions
  9. ** may not be distributed.
  10. ** This software is provided "as is" without any expressed or implied warranty.
  11. **
  12. **
  13. */
  14.  
  15. #ifndef FILEDICT_H
  16. #define FILEDICT_H
  17.  
  18. /*------------------------------------------------------------------------------
  19. */
  20. struct FileRec {
  21.   char*           _name;
  22.   struct FileRec* _next;
  23. };
  24. typedef struct FileRec FileRec;
  25.  
  26.  
  27.  
  28. /*------------------------------------------------------------------------------
  29. //                         Le dictionnaire des fichiers
  30. //------------------------------------------------------------------------------
  31. */
  32.  
  33. #define FILE_DICT_SIZE    101
  34.  
  35. extern  FileRec* file_dict[];
  36.  
  37. extern  int      file_count;
  38.  
  39.  
  40. /*------------------------------------------------------------------------------
  41. //       Les procedures utilisees manipuler le dictionnaire des fichiers
  42. //------------------------------------------------------------------------------
  43. */
  44.  
  45. extern FileRec*     create_file   (/* char* file_name */);
  46.  
  47. extern FileRec*     find_file     (/* char* file_name */);
  48.  
  49. extern void         remove_file   (/* char* file_name */);
  50.  
  51.  
  52. /*------------------------------------------------------------------------------
  53. //       La procedure d'initialisation du dictionnaire des fichiers
  54. //------------------------------------------------------------------------------
  55. */
  56.  
  57. extern void         init_file     ();
  58.  
  59.  
  60. #endif  /*  FILEDICT_H  */
  61.  
  62.  
  63.  
  64.