6 FILE *abook_fopen (const char *path, const char *mode);
7 void quit_abook(int save_db);
8 void launch_wwwbrowser(int item);
9 void launch_mutt(int item);
10 void print_stderr(int item);
12 int strcasecmp (const char *, const char *);
13 int strncasecmp (const char *, const char *, size_t);
16 #define MAIN_HELPLINE "q:quit ?:help a:add r:remove"
18 #define Y_STATUSLINE (LINES - 2)
23 #define DEFAULT_UMASK 066
24 #define DIR_IN_HOME ".abook"
25 #define DATAFILE "addressbook"
27 #define RCFILE "abookrc"
30 #define QUIT_DONTSAVE 0
33 * some "abookwide" useful macros
36 #define hide_cursor() curs_set(0)
37 #define show_cursor() curs_set(1)
39 #define safe_atoi(X) ((X == NULL) ? 0 : atoi(X))
40 #define safe_str(X) ((X == NULL) ? "" : X)
43 # define min(x,y) (((x)<(y)) ? (x):(y))
47 # define max(x,y) (((x)>(y)) ? (x):(y))
50 #define ISSPACE(c) isspace((unsigned char)c)