1 /* wmbday 2 * Copyright (C) 2003-2005 astratis <steffen@x-berg.de> 3 * 4 * This program is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU General Public Licensse as published by 6 * the Free Software Foundation; either version 2 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 */ 18 19 #ifndef RING_H 20 #define RING_H 21 22 23 struct ring { 24 char name[50]; 25 int day; 26 int month; 27 int year; 28 struct ring* next; 29 }; 30 31 32 /* adds a birthday to the list */ 33 void ring_add(char* name, int day, int month, int year); 34 35 /* makes "current" point to the person, whose birthday is next to date specified by "day"/"month"*/ 36 void ring_goto_date(int day, int month); 37 38 /* puts next "count" birthdays into "target" */ 39 void ring_get_next(struct ring* target[], int number); 40 41 /* checks for birthday on date specified by "day"/"month" */ 42 int ring_check_bday(int day, int month); 43 44 /* cleans up whole list */ 45 void ring_clear(void); 46 47 #endif /* RING_H */ 48