home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: OtherApp
/
OtherApp.zip
/
nut-os2.zip
/
src
/
main.c
< prev
next >
Wrap
Text File
|
1998-09-11
|
1KB
|
46 lines
/* main.c */
/*
Nut nutrition software
Copyright (C) 1998 Jim Jozwiak.
OS/2 Port by Michele Della Guardia 1998
mikedg@ghostbbs.ml.org
Member of "Team OS/2 Italy"
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "menu.h"
#include "food.h"
#include "db.h"
#include <stdlib.h>
void main(int argc, char *argv[])
{
food_root.next = NULL;
meal_root.next = NULL;
recipe_root.next = NULL;
make_filenames();
if ( ! read_food_db() )
{
read_raw_food_db();
read_nut_raw_food_file();
}
read_meal_db();
read_options_db();
menu();
}