home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: Alpha / Whiteline Alpha.iso / vision / magiceye / ddd / tools.h < prev   
Encoding:
C/C++ Source or Header  |  1994-09-07  |  1.5 KB  |  69 lines

  1. /*-----------
  2. | Header für:
  3. | tools.c
  4. -------------*/
  5.  
  6. #if !defined( __TOOLS__ )
  7. #define __TOOLS__
  8.  
  9. /*-----------
  10. | Prototypen:
  11. -------------*/
  12. int get_options( int argc, char **argv);
  13. int get_index( char *p );
  14. void *get_number( char *);
  15. void *get_string( char *);
  16. void *get_nothing( char *);
  17.  
  18. void *load_file(char *pfad, char *name, char *mode);
  19. void unload_file(char *p);
  20. FILE *open_file( char *pfad, char *name, const char *mode);
  21. int close_file(FILE *fp);
  22.  
  23. long fsize(FILE *fp);
  24.  
  25. char *set_path(char *dir);
  26. char *get_path(char *);
  27. int get_pn( char *p, char *n, char *inp);
  28. char *get_name( char *p);
  29. int get_drv( void );
  30. long set_drv( int drv );
  31. int set_dir( char *p );
  32. int set_dir( char *p );
  33. int get_dir( char *p, int drv);
  34.  
  35.  
  36.  
  37.  
  38. /*--------------------------------------------
  39. | option:    Zeigt auf Eingabe-String
  40. | function:    liest Parameter ein.
  41. | value :    Enthält Wert (value <= long)
  42. |            oder Zeiger auf Wert (string ...)
  43. ---------------------------------------------*/
  44. typedef struct{ char *option;
  45.                 void *(*function)( char * );
  46.                 void *value;
  47.                 int valid;
  48.                }opt_list;
  49.  
  50.  
  51. /*-------------------------
  52. | Öffentliches aus tools.c:
  53. ---------------------------*/
  54. extern long act_fil_sz;
  55.  
  56.  
  57. /*------------------------------------
  58. | Muß im lokalen Text definiert werden
  59. --------------------------------------*/
  60. extern opt_list liste[];
  61.  
  62.  
  63. #if !defined FALSE
  64.  #define FALSE 0
  65.  #define TRUE ~FALSE
  66. #endif
  67.  
  68. #endif
  69.