home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: OtherApp / OtherApp.zip / nut-os2.zip / src / food.h < prev    next >
C/C++ Source or Header  |  1998-09-10  |  2KB  |  64 lines

  1. /* food.h */
  2.  
  3. /*
  4.     Nut nutrition software 
  5.     Copyright (C) 1998 Jim Jozwiak.
  6.  
  7.     This program is free software; you can redistribute it and/or modify
  8.     it under the terms of the GNU General Public License as published by
  9.     the Free Software Foundation; either version 2 of the License, or
  10.     (at your option) any later version.
  11.  
  12.     This program is distributed in the hope that it will be useful,
  13.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.     GNU General Public License for more details.
  16.  
  17.     You should have received a copy of the GNU General Public License
  18.     along with this program; if not, write to the Free Software
  19.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20. */
  21.  
  22. #ifndef FOOD_H
  23. #define FOOD_H
  24.  
  25. struct food
  26.  {
  27.  char  meal_date[7];
  28.  char  meal;
  29.  char  name[61];
  30.  char  serving[51];
  31.  float grams;
  32.  float refuse;
  33.  float nutrient[31];
  34.  struct food *next;
  35.  };
  36.  
  37. extern struct food food_root, meal_root, recipe_root, food_work, *new_food, *new_meal, *new_recipe;
  38. extern char *Nutrient[];
  39. extern float Rdi[];
  40. extern float RdiBase[];
  41. extern char *RdiUnit[];
  42. extern int NutrientCount;
  43. extern int FoodCount;
  44.  
  45. void order_new_food(void);
  46. int namestrcmp(char *, char *);
  47. void order_new_meal(void);
  48. void order_new_recipe(void);
  49. struct food *food_choice(char *);
  50. void food_subcat(char *, struct food **, int);
  51. int meal_show(char *, int);
  52. void food_show(struct food *, float *);
  53. struct food *food_number(int);
  54. struct food *meal_find(char *,int);
  55. void delete_meal_food(char *, int, int);
  56. int meal_count(void);
  57. int meal_food_count(void);
  58. void clear_work(void);
  59. void food_display(void);
  60. void delete_recipe_food(int);
  61. void delete_meals(int);
  62.  
  63. #endif
  64.