/* db.h - define functions to handle list of records Copyright (C) 1999 Matt Fisher (mfisher1@bigred.unl.edu) 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ struct corydb { struct corydb *next; char index_text[30]; char *info_text; }; void add_list( struct corydb *cur_list, char *index_text, char *info_text ); struct corydb *init_list( void ); void del_list( struct corydb *cur_list, char *index_text ); void edit_list( struct corydb *cur_list, char *index_text, char *new_text ); char *retr_list( struct corydb *cur_list, char *index_text ); void wipe_list( struct corydb *cur_list );