home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 2 / goldfish_vol2_cd1.bin / files / misc / sci / units / source / units_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-07-28  |  1.0 KB  |  57 lines

  1. /* Prototypes for functions defined in
  2. units.c
  3.  */
  4.  
  5. extern char * powerstring;
  6.  
  7. extern struct { char * uname; char * uval;  }  unittable[1000];
  8.  
  9. extern struct { char * prefixname; char * prefixval;  }  prefixtable[50];
  10.  
  11. extern char * NULLUNIT;
  12.  
  13. extern int unitcount;
  14.  
  15. extern int prefixcount;
  16.  
  17. char * dupstr(char * );
  18.  
  19. void readerror(int );
  20.  
  21. void readunits(char * );
  22.  
  23. void initializeunit(struct unittype * );
  24.  
  25. int addsubunit(char ** , char * );
  26.  
  27. void showunit(struct unittype * );
  28.  
  29. void zeroerror(void);
  30.  
  31. int addunit(struct unittype * , char * , int );
  32.  
  33. int compare(void const * , void const * );
  34.  
  35. void sortunit(struct unittype * );
  36.  
  37. void cancelunit(struct unittype * );
  38.  
  39. char * lookupunit(char * );
  40.  
  41. int reduceproduct(struct unittype * , int );
  42.  
  43. int reduceunit(struct unittype * );
  44.  
  45. int compareproducts(char ** , char ** );
  46.  
  47. int compareunits(struct unittype * , struct unittype * );
  48.  
  49. int completereduce(struct unittype * );
  50.  
  51. void showanswer(struct unittype * , struct unittype * );
  52.  
  53. void usage(void);
  54.  
  55. void main(int , char ** );
  56.  
  57.