home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: OtherApp / OtherApp.zip / nut-os2.zip / src / main.c < prev    next >
Text File  |  1998-09-11  |  1KB  |  46 lines

  1. /* main.c */
  2.  
  3. /*
  4.     Nut nutrition software 
  5.     Copyright (C) 1998 Jim Jozwiak.
  6.  
  7.     OS/2 Port by Michele Della Guardia 1998
  8.     mikedg@ghostbbs.ml.org
  9.     Member of "Team OS/2 Italy"
  10.  
  11.     This program is free software; you can redistribute it and/or modify
  12.     it under the terms of the GNU General Public License as published by
  13.     the Free Software Foundation; either version 2 of the License, or
  14.     (at your option) any later version.
  15.  
  16.     This program is distributed in the hope that it will be useful,
  17.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  18.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19.     GNU General Public License for more details.
  20.  
  21.     You should have received a copy of the GNU General Public License
  22.     along with this program; if not, write to the Free Software
  23.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  24. */
  25.  
  26. #include "menu.h"
  27. #include "food.h"
  28. #include "db.h"
  29. #include <stdlib.h>
  30.  
  31. void main(int argc, char *argv[])
  32. {
  33. food_root.next = NULL;
  34. meal_root.next = NULL;
  35. recipe_root.next = NULL;
  36. make_filenames();
  37. if ( ! read_food_db() )
  38.  {
  39.  read_raw_food_db();
  40.  read_nut_raw_food_file();
  41.  }
  42. read_meal_db();
  43. read_options_db();
  44. menu();
  45. }
  46.