From 43bdd12254082c58b04e0d3b3032569443e96e4f Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 27 Feb 2013 10:45:51 +0100 Subject: parse_{date,time}(): Split out date/time validation Split date/time validation into separate functions check_date() and check_time(). These will be used to validate date/time information when reading items from the appointments file. Signed-off-by: Lukas Fleischer --- src/calcurse.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/calcurse.h') diff --git a/src/calcurse.h b/src/calcurse.h index 64c8808..e8313b0 100644 --- a/src/calcurse.h +++ b/src/calcurse.h @@ -974,7 +974,9 @@ char *nowstr(void); void print_bool_option_incolor(WINDOW *, unsigned, int, int); const char *get_tempdir(void); char *new_tempfile(const char *, int); +int check_date(unsigned, unsigned, unsigned); int parse_date(const char *, enum datefmt, int *, int *, int *, struct date *); +int check_time(unsigned, unsigned); int parse_time(const char *, unsigned *, unsigned *); int parse_duration(const char *, unsigned *); void file_close(FILE *, const char *); -- cgit v1.2.3